From 266b388921a9d50b0d4c44b0f7d12245a86723e4 Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Mon, 25 Sep 2017 12:01:25 +0200 Subject: [PATCH] WebshopApi: Part prices relationship - pricegroup mit laden --- SL/DB/Part.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index c2cb641ae..6ce6ed5b7 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -29,6 +29,7 @@ __PACKAGE__->meta->add_relationships( type => 'one to many', class => 'SL::DB::Price', column_map => { id => 'parts_id' }, + manager_args => { with_objects => [ 'pricegroup' ] } }, makemodels => { type => 'one to many', -- 2.20.1