From 70ff48b402fcd79c156c7594c43acf12d78a4480 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 14 Sep 2011 11:46:35 +0200 Subject: [PATCH] custom_variables accessor wird jetzt vom mixin erstellt. --- SL/DB/Customer.pm | 6 ------ SL/DB/Part.pm | 6 ------ SL/DB/Vendor.pm | 6 ------ 3 files changed, 18 deletions(-) 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; -- 2.20.1