Revision 70ff48b4
Von Sven Schöling vor etwa 13 Jahren hinzugefügt
SL/DB/Customer.pm | ||
---|---|---|
31 | 31 |
class => 'SL::DB::Business', |
32 | 32 |
column_map => { business_id => 'id' }, |
33 | 33 |
}, |
34 |
custom_variables => { |
|
35 |
type => 'one to many', |
|
36 |
class => 'SL::DB::CustomVariable', |
|
37 |
column_map => { id => 'trans_id' }, |
|
38 |
query_args => [ config_id => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = 'CT')" ] ], |
|
39 |
}, |
|
40 | 34 |
); |
41 | 35 |
|
42 | 36 |
__PACKAGE__->meta->initialize; |
SL/DB/Part.pm | ||
---|---|---|
51 | 51 |
class => 'SL::DB::Translation', |
52 | 52 |
column_map => { id => 'parts_id' }, |
53 | 53 |
}, |
54 |
custom_variables => { |
|
55 |
type => 'one to many', |
|
56 |
class => 'SL::DB::CustomVariable', |
|
57 |
column_map => { id => 'trans_id' }, |
|
58 |
query_args => [ config_id => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = 'IC')" ] ], |
|
59 |
}, |
|
60 | 54 |
); |
61 | 55 |
|
62 | 56 |
__PACKAGE__->meta->initialize; |
SL/DB/Vendor.pm | ||
---|---|---|
30 | 30 |
class => 'SL::DB::Business', |
31 | 31 |
column_map => { business_id => 'id' }, |
32 | 32 |
}, |
33 |
custom_variables => { |
|
34 |
type => 'one to many', |
|
35 |
class => 'SL::DB::CustomVariable', |
|
36 |
column_map => { id => 'trans_id' }, |
|
37 |
query_args => [ config_id => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = 'CT')" ] ], |
|
38 |
}, |
|
39 | 33 |
); |
40 | 34 |
|
41 | 35 |
__PACKAGE__->meta->make_manager_class; |
Auch abrufbar als: Unified diff
custom_variables accessor wird jetzt vom mixin erstellt.