Revision 968894aa
Von Sven Schöling vor fast 13 Jahren hinzugefügt
SL/DB/MetaSetup/Part.pm | ||
---|---|---|
59 | 59 |
class => 'SL::DB::Buchungsgruppe', |
60 | 60 |
key_columns => { buchungsgruppen_id => 'id' }, |
61 | 61 |
}, |
62 |
|
|
63 |
unit_obj => { |
|
64 |
class => 'SL::DB::Unit', |
|
65 |
key_columns => { unit => 'name' }, |
|
66 |
}, |
|
62 | 67 |
], |
63 | 68 |
); |
64 | 69 |
|
SL/DB/Part.pm | ||
---|---|---|
16 | 16 |
); |
17 | 17 |
|
18 | 18 |
__PACKAGE__->meta->add_relationships( |
19 |
unit_obj => { |
|
20 |
type => 'one to one', |
|
21 |
class => 'SL::DB::Unit', |
|
22 |
column_map => { unit => 'name' }, |
|
23 |
}, |
|
24 | 19 |
assemblies => { |
25 | 20 |
type => 'one to many', |
26 | 21 |
class => 'SL::DB::Assembly', |
Auch abrufbar als: Unified diff
rdbo models: Parts nach 066fbb38f