From 9be7c8ab43c49d7935cc91d3be72bc5717e07dc0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 13 Oct 2011 10:46:26 +0200 Subject: [PATCH] vendor model update --- SL/DB/MetaSetup/Vendor.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 6d858e59f..ae71c6293 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -59,6 +59,23 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'id' ], allow_inline_column_values => 1, + + foreign_keys => [ + business => { + class => 'SL::DB::Business', + key_columns => { business_id => 'id' }, + }, + + language_obj => { + class => 'SL::DB::Language', + key_columns => { language_id => 'id' }, + }, + + payment => { + class => 'SL::DB::PaymentTerm', + key_columns => { payment_id => 'id' }, + }, + ], ); 1; -- 2.20.1