Revision 4bcf8804
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Shipto.pm | ||
---|---|---|
32 | 32 |
|
33 | 33 |
__PACKAGE__->meta->allow_inline_column_values(1); |
34 | 34 |
|
35 |
__PACKAGE__->meta->relationships( |
|
36 |
ar => { |
|
37 |
class => 'SL::DB::Invoice', |
|
38 |
column_map => { shipto_id => 'shipto_id' }, |
|
39 |
type => 'one to many', |
|
40 |
}, |
|
41 |
|
|
42 |
delivery_orders => { |
|
43 |
class => 'SL::DB::DeliveryOrder', |
|
44 |
column_map => { shipto_id => 'shipto_id' }, |
|
45 |
type => 'one to many', |
|
46 |
}, |
|
47 |
|
|
48 |
oe => { |
|
49 |
class => 'SL::DB::Order', |
|
50 |
column_map => { shipto_id => 'shipto_id' }, |
|
51 |
type => 'one to many', |
|
52 |
}, |
|
53 |
); |
|
54 |
|
|
55 | 35 |
# __PACKAGE__->meta->initialize; |
56 | 36 |
|
57 | 37 |
1; |
Auch abrufbar als: Unified diff
MetaSetup: Folgerun um die Foreign Keys umzudrehen