X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FPart.pm;h=fd55e02072e7653960fa20fbb599e761d39ae1fa;hb=930e5ecb0d071e20e9fc57e6050859a0a7a5a98d;hp=8ec7b3b1bff99223de7452ab60f2ea8ee3df1afa;hpb=6b935d522a38e1a20802c25ed51a15e0cd292c1d;p=kivitendo-erp.git 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;