Revision 4bcf8804
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Language.pm | ||
---|---|---|
24 | 24 |
|
25 | 25 |
__PACKAGE__->meta->allow_inline_column_values(1); |
26 | 26 |
|
27 |
__PACKAGE__->meta->relationships( |
|
28 |
ap => { |
|
29 |
class => 'SL::DB::PurchaseInvoice', |
|
30 |
column_map => { id => 'language_id' }, |
|
31 |
type => 'one to many', |
|
32 |
}, |
|
33 |
|
|
34 |
ar => { |
|
35 |
class => 'SL::DB::Invoice', |
|
36 |
column_map => { id => 'language_id' }, |
|
37 |
type => 'one to many', |
|
38 |
}, |
|
39 |
|
|
40 |
customer => { |
|
41 |
class => 'SL::DB::Customer', |
|
42 |
column_map => { id => 'language_id' }, |
|
43 |
type => 'one to many', |
|
44 |
}, |
|
45 |
|
|
46 |
generic_translations => { |
|
47 |
class => 'SL::DB::GenericTranslation', |
|
48 |
column_map => { id => 'language_id' }, |
|
49 |
type => 'one to many', |
|
50 |
}, |
|
51 |
); |
|
52 |
|
|
53 | 27 |
# __PACKAGE__->meta->initialize; |
54 | 28 |
|
55 | 29 |
1; |
Auch abrufbar als: Unified diff
MetaSetup: Folgerun um die Foreign Keys umzudrehen