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