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