X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/266b388921a9d50b0d4c44b0f7d12245a86723e4..51d5993574d3dada29e5aa7a81e118daae9f4df9:/SL/DB/Part.pm diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 6ce6ed5b7..8036db532 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -54,6 +54,12 @@ __PACKAGE__->meta->add_relationships( query_args => [ what_done => 'part' ], manager_args => { sort_by => 'itime' }, }, + shop_parts => { + type => 'one to many', + class => 'SL::DB::ShopPart', + column_map => { id => 'part_id' }, + manager_args => { with_objects => [ 'shop' ] }, + }, ); __PACKAGE__->meta->initialize;