Revision cc54185d
Von Moritz Bunkus vor etwa 14 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
column_map => { id => 'trans_id' },
|
||
manager_args => { with_objects => [ 'part' ] }
|
||
},
|
||
shipto => { type => 'one to one',
|
||
class => 'SL::DB::Shipto',
|
||
column_map => { shipto_id => 'shipto_id' },
|
||
},
|
||
department => { type => 'one to one',
|
||
class => 'SL::DB::Department',
|
||
column_map => { department_id => 'id' },
|
||
},
|
||
);
|
||
|
||
__PACKAGE__->meta->initialize;
|
SL/DB/Invoice.pm | ||
---|---|---|
class => 'SL::DB::PaymentTerm',
|
||
column_map => { payment_id => 'id' },
|
||
},
|
||
contact => {
|
||
type => 'one to one',
|
||
class => 'SL::DB::Contact',
|
||
column_map => { cp_id => 'cp_id' },
|
||
},
|
||
shipto => {
|
||
type => 'one to one',
|
||
class => 'SL::DB::Shipto',
|
||
column_map => { shipto_id => 'shipto_id' },
|
||
},
|
||
department => {
|
||
type => 'one to one',
|
||
class => 'SL::DB::Department',
|
||
column_map => { department_id => 'id' },
|
||
},
|
||
language => {
|
||
type => 'one to one',
|
||
class => 'SL::DB::Language',
|
||
column_map => { language_id => 'id' },
|
||
},
|
||
);
|
||
|
||
__PACKAGE__->meta->initialize;
|
SL/DB/Order.pm | ||
---|---|---|
class => 'SL::DB::PaymentTerm',
|
||
column_map => { payment_id => 'id' },
|
||
},
|
||
contact => {
|
||
type => 'one to one',
|
||
class => 'SL::DB::Contact',
|
||
column_map => { cp_id => 'cp_id' },
|
||
},
|
||
shipto => {
|
||
type => 'one to one',
|
||
class => 'SL::DB::Shipto',
|
||
column_map => { shipto_id => 'shipto_id' },
|
||
},
|
||
department => {
|
||
type => 'one to one',
|
||
class => 'SL::DB::Department',
|
||
column_map => { department_id => 'id' },
|
||
},
|
||
language => {
|
||
type => 'one to one',
|
||
class => 'SL::DB::Language',
|
||
column_map => { language_id => 'id' },
|
||
},
|
||
);
|
||
|
||
__PACKAGE__->meta->initialize;
|
Auch abrufbar als: Unified diff
Modelverknüpfungen