X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/4440782f0737cd715dbd96851ecc2dbd8cd639f2..82515b2d93dc5632f24d6e0b6f8f05f3fd19fbb0:/SL/DB/Warehouse.pm diff --git a/SL/DB/Warehouse.pm b/SL/DB/Warehouse.pm new file mode 100644 index 000000000..b8ddf7187 --- /dev/null +++ b/SL/DB/Warehouse.pm @@ -0,0 +1,28 @@ +# This file has been auto-generated only because it didn't exist. +# Feel free to modify it at will; it will not be overwritten automatically. + +package SL::DB::Warehouse; + +use strict; + +use SL::DB::MetaSetup::Warehouse; +use SL::DB::Manager::Warehouse; + +__PACKAGE__->meta->add_relationship( + bins => { + type => 'one to many', + class => 'SL::DB::Bin', + column_map => { id => 'warehouse_id' }, + } +); + +# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. +#__PACKAGE__->meta->make_manager_class; + +__PACKAGE__->meta->initialize; + +sub first_bin { + return shift()->bins->[0]; +} + +1;