Revision b632cee8
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
SL/DB/DeliveryOrderItem.pm | ||
---|---|---|
12 | 12 |
); |
13 | 13 |
|
14 | 14 |
__PACKAGE__->meta->make_manager_class; |
15 |
__PACKAGE__->meta->add_relationship( |
|
16 |
unit_obj => { |
|
17 |
type => 'one to one', |
|
18 |
class => 'SL::DB::Unit', |
|
19 |
column_map => { unit => 'name' }, |
|
20 |
}, |
|
21 |
); |
|
15 | 22 |
|
16 | 23 |
__PACKAGE__->meta->initialize; |
17 | 24 |
|
... | ... | |
19 | 26 |
|
20 | 27 |
sub part { |
21 | 28 |
# canonial alias for parts. |
22 |
return shift->parts;
|
|
29 |
goto &parts;
|
|
23 | 30 |
} |
24 | 31 |
|
25 | 32 |
1; |
Auch abrufbar als: Unified diff
InvoiceItem, OrderItem, DeliveryOrderItem: diverse Fremdschlüssel eingeführt