X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f9c7abfae65b79945beb7e9260942bc94876248a..f71b2873b17c2c17ad9b71139cb389f689645ad4:/SL/DB/Part.pm diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 8ec7b3b1b..fd55e0207 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -31,6 +31,11 @@ __PACKAGE__->meta->add_relationships( class => 'SL::DB::PriceFactor', column_map => { price_factor_id => 'id' }, }, + prices => { + type => 'one to many', + class => 'SL::DB::Price', + column_map => { id => 'parts_id' }, + }, ); __PACKAGE__->meta->initialize;