Kosmetik
[kivitendo-erp.git] / SL / DB / Warehouse.pm
1 # This file has been auto-generated only because it didn't exist.
2 # Feel free to modify it at will; it will not be overwritten automatically.
3
4 package SL::DB::Warehouse;
5
6 use strict;
7
8 use SL::DB::MetaSetup::Warehouse;
9 use SL::DB::Helper::ActsAsList;
10
11 __PACKAGE__->meta->make_manager_class;
12
13 __PACKAGE__->meta->add_relationship(
14   bins => {
15     type         => 'one to many',
16     class        => 'SL::DB::Bin',
17     column_map   => { id => 'warehouse_id' },
18   }
19 );
20
21 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
22 #__PACKAGE__->meta->make_manager_class;
23
24 __PACKAGE__->meta->initialize;
25
26 sub first_bin {
27   return shift()->bins->[0];
28 }
29
30 1;