custom_variables accessor wird jetzt vom mixin erstellt.
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 14 Sep 2011 09:46:35 +0000 (11:46 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 14 Sep 2011 09:46:35 +0000 (11:46 +0200)
SL/DB/Customer.pm
SL/DB/Part.pm
SL/DB/Vendor.pm

index 7cdfde6..0adffbd 100644 (file)
@@ -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;
index 1f7f7e6..22fbc1b 100644 (file)
@@ -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;
index 3514366..5841eda 100644 (file)
@@ -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;