X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/35948584de818b00974b9dab65682c4d5ceba67f..39e13b0fb4b323c1d8c691b0e55c37d0ca1becc5:/SL/DB/Customer.pm diff --git a/SL/DB/Customer.pm b/SL/DB/Customer.pm index f2893ae74..c2c436dfd 100644 --- a/SL/DB/Customer.pm +++ b/SL/DB/Customer.pm @@ -27,6 +27,12 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::Business', column_map => { business_id => 'id' }, }, + custom_variables => { + type => 'one to many', + class => 'SL::DB::CustomVariable', + column_map => { id => 'trans_id' }, + query_args => [ config_id => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = 'CT')" ] ], + }, ); __PACKAGE__->meta->make_manager_class;