Revision d5a003cf
Von Moritz Bunkus vor etwa 13 Jahren hinzugefügt
SL/DB/Helper/CustomVariables.pm | ||
---|---|---|
44 | 44 |
my ($caller_package, %params) = @_; |
45 | 45 |
|
46 | 46 |
my @module_filter = $params{module} ? |
47 |
("config.module" => $params{module}) :
|
|
47 |
("config_id" => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = '$params{module}')" ]) :
|
|
48 | 48 |
(); |
49 | 49 |
|
50 | 50 |
$caller_package->meta->add_relationships( |
... | ... | |
52 | 52 |
type => 'one to many', |
53 | 53 |
class => 'SL::DB::CustomVariable', |
54 | 54 |
column_map => { ($params{id} || 'id') => 'trans_id' }, |
55 |
manager_args => { with_objects => 'config' }, |
|
56 | 55 |
query_args => [ sub_module => $params{sub_module}, @module_filter ], |
57 | 56 |
} |
58 | 57 |
); |
Auch abrufbar als: Unified diff
CVars: Kein Manager-Arg "config.module" verwenden