Revision 39e13b0f
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/DB/Customer.pm | ||
---|---|---|
27 | 27 |
class => 'SL::DB::Business', |
28 | 28 |
column_map => { business_id => 'id' }, |
29 | 29 |
}, |
30 |
custom_variables => { |
|
31 |
type => 'one to many', |
|
32 |
class => 'SL::DB::CustomVariable', |
|
33 |
column_map => { id => 'trans_id' }, |
|
34 |
query_args => [ config_id => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = 'CT')" ] ], |
|
35 |
}, |
|
30 | 36 |
); |
31 | 37 |
|
32 | 38 |
__PACKAGE__->meta->make_manager_class; |
SL/DB/Part.pm | ||
---|---|---|
37 | 37 |
class => 'SL::DB::Price', |
38 | 38 |
column_map => { id => 'parts_id' }, |
39 | 39 |
}, |
40 |
makemodels => { |
|
41 |
type => 'one to many', |
|
42 |
class => 'SL::DB::MakeModel', |
|
43 |
column_map => { id => 'parts_id' }, |
|
44 |
}, |
|
45 |
translations => { |
|
46 |
type => 'one to many', |
|
47 |
class => 'SL::DB::Translation', |
|
48 |
column_map => { id => 'parts_id' }, |
|
49 |
}, |
|
50 |
custom_variables => { |
|
51 |
type => 'one to many', |
|
52 |
class => 'SL::DB::CustomVariable', |
|
53 |
column_map => { id => 'trans_id' }, |
|
54 |
query_args => [ config_id => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = 'IC')" ] ], |
|
55 |
}, |
|
40 | 56 |
); |
41 | 57 |
|
42 | 58 |
__PACKAGE__->meta->initialize; |
SL/DB/Vendor.pm | ||
---|---|---|
26 | 26 |
class => 'SL::DB::Business', |
27 | 27 |
column_map => { business_id => 'id' }, |
28 | 28 |
}, |
29 |
custom_variables => { |
|
30 |
type => 'one to many', |
|
31 |
class => 'SL::DB::CustomVariable', |
|
32 |
column_map => { id => 'trans_id' }, |
|
33 |
query_args => [ config_id => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = 'CT')" ] ], |
|
34 |
}, |
|
29 | 35 |
); |
30 | 36 |
|
31 | 37 |
__PACKAGE__->meta->make_manager_class; |
Auch abrufbar als: Unified diff
Verknüpfungen Parts/Customers/Vendors -> Custom Variables