From efc6308644cc98682efcb325519b2466ee9f5a71 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 1 Mar 2011 15:57:19 +0100 Subject: [PATCH] =?utf8?q?Verkn=C3=BCpfung=20Vendor=20->=20Contact?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Vendor.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SL/DB/Vendor.pm b/SL/DB/Vendor.pm index d1d972a15..42e6ca690 100644 --- a/SL/DB/Vendor.pm +++ b/SL/DB/Vendor.pm @@ -15,6 +15,12 @@ __PACKAGE__->meta->add_relationship( manager_args => { sort_by => 'lower(shipto.shiptoname)' }, query_args => [ 'shipto.module' => 'CT' ], }, + contacts => { + type => 'one to many', + class => 'SL::DB::Contact', + column_map => { id => 'cp_cv_id' }, + manager_args => { sort_by => 'lower(contacts.cp_name)' }, + }, business => { type => 'one to one', class => 'SL::DB::Business', -- 2.20.1