Revision 4bcf8804
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Employee.pm | ||
---|---|---|
33 | 33 |
|
34 | 34 |
__PACKAGE__->meta->allow_inline_column_values(1); |
35 | 35 |
|
36 |
__PACKAGE__->meta->relationships( |
|
37 |
ap => { |
|
38 |
class => 'SL::DB::PurchaseInvoice', |
|
39 |
column_map => { id => 'employee_id' }, |
|
40 |
type => 'one to many', |
|
41 |
}, |
|
42 |
|
|
43 |
ar => { |
|
44 |
class => 'SL::DB::Invoice', |
|
45 |
column_map => { id => 'employee_id' }, |
|
46 |
type => 'one to many', |
|
47 |
}, |
|
48 |
|
|
49 |
ar_objs => { |
|
50 |
class => 'SL::DB::Invoice', |
|
51 |
column_map => { id => 'salesman_id' }, |
|
52 |
type => 'one to many', |
|
53 |
}, |
|
54 |
|
|
55 |
drafts => { |
|
56 |
class => 'SL::DB::Draft', |
|
57 |
column_map => { id => 'employee_id' }, |
|
58 |
type => 'one to many', |
|
59 |
}, |
|
60 |
); |
|
61 |
|
|
62 | 36 |
# __PACKAGE__->meta->initialize; |
63 | 37 |
|
64 | 38 |
1; |
Auch abrufbar als: Unified diff
MetaSetup: Folgerun um die Foreign Keys umzudrehen