Revision 4bcf8804
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Pricegroup.pm | ||
---|---|---|
15 | 15 |
|
16 | 16 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
17 | 17 |
|
18 |
__PACKAGE__->meta->relationships( |
|
19 |
delivery_order_items => { |
|
20 |
class => 'SL::DB::DeliveryOrderItem', |
|
21 |
column_map => { id => 'pricegroup_id' }, |
|
22 |
type => 'one to many', |
|
23 |
}, |
|
24 |
|
|
25 |
invoice => { |
|
26 |
class => 'SL::DB::InvoiceItem', |
|
27 |
column_map => { id => 'pricegroup_id' }, |
|
28 |
type => 'one to many', |
|
29 |
}, |
|
30 |
|
|
31 |
orderitems => { |
|
32 |
class => 'SL::DB::OrderItem', |
|
33 |
column_map => { id => 'pricegroup_id' }, |
|
34 |
type => 'one to many', |
|
35 |
}, |
|
36 |
); |
|
37 |
|
|
38 | 18 |
# __PACKAGE__->meta->initialize; |
39 | 19 |
|
40 | 20 |
1; |
Auch abrufbar als: Unified diff
MetaSetup: Folgerun um die Foreign Keys umzudrehen