Revision cd9e51e6
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/DB/InvoiceItem.pm | ||
---|---|---|
14 | 14 |
}, |
15 | 15 |
); |
16 | 16 |
|
17 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
18 | 17 |
__PACKAGE__->meta->make_manager_class; |
19 | 18 |
|
19 |
__PACKAGE__->meta->add_relationships( |
|
20 |
invoice => { |
|
21 |
type => 'one to one', |
|
22 |
class => 'SL::DB::Invoice', |
|
23 |
column_map => { trans_id => 'id' }, |
|
24 |
}, |
|
25 |
|
|
26 |
purchase_invoice => { |
|
27 |
type => 'one to one', |
|
28 |
class => 'SL::DB::PurchaseInvoice', |
|
29 |
column_map => { trans_id => 'id' }, |
|
30 |
}, |
|
31 |
); |
|
32 |
|
|
20 | 33 |
__PACKAGE__->meta->initialize; |
21 | 34 |
|
22 | 35 |
1; |
Auch abrufbar als: Unified diff
SL::DB::InvoiceItem: Relationships zu …Invoice und …PurchaseInvoice