From: Sven Schöling Date: Wed, 14 Sep 2011 09:46:35 +0000 (+0200) Subject: custom_variables accessor wird jetzt vom mixin erstellt. X-Git-Tag: release-2.7.0beta1~296 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=70ff48b402fcd79c156c7594c43acf12d78a4480;p=kivitendo-erp.git custom_variables accessor wird jetzt vom mixin erstellt. --- diff --git a/SL/DB/Customer.pm b/SL/DB/Customer.pm index 7cdfde6e4..0adffbddd 100644 --- a/SL/DB/Customer.pm +++ b/SL/DB/Customer.pm @@ -31,12 +31,6 @@ __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->initialize; diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 1f7f7e637..22fbc1b4c 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -51,12 +51,6 @@ __PACKAGE__->meta->add_relationships( class => 'SL::DB::Translation', column_map => { id => 'parts_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 = 'IC')" ] ], - }, ); __PACKAGE__->meta->initialize; diff --git a/SL/DB/Vendor.pm b/SL/DB/Vendor.pm index 35143668e..5841edadc 100644 --- a/SL/DB/Vendor.pm +++ b/SL/DB/Vendor.pm @@ -30,12 +30,6 @@ __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;