Revision 4bcf8804
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Department.pm | ||
---|---|---|
19 | 19 |
|
20 | 20 |
__PACKAGE__->meta->allow_inline_column_values(1); |
21 | 21 |
|
22 |
__PACKAGE__->meta->relationships( |
|
23 |
ap => { |
|
24 |
class => 'SL::DB::PurchaseInvoice', |
|
25 |
column_map => { id => 'department_id' }, |
|
26 |
type => 'one to many', |
|
27 |
}, |
|
28 |
|
|
29 |
ar => { |
|
30 |
class => 'SL::DB::Invoice', |
|
31 |
column_map => { id => 'department_id' }, |
|
32 |
type => 'one to many', |
|
33 |
}, |
|
34 |
); |
|
35 |
|
|
36 | 22 |
# __PACKAGE__->meta->initialize; |
37 | 23 |
|
38 | 24 |
1; |
Auch abrufbar als: Unified diff
MetaSetup: Folgerun um die Foreign Keys umzudrehen