X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FDepartment.pm;h=ab1ed8d6947313c9b04e15fad701744a2264501f;hb=0c09beb40eea289ceebb36aa53b447051fb82857;hp=527234dab898a1d893c148277293ebaf2e29121e;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Department.pm b/SL/DB/MetaSetup/Department.pm index 527234dab..ab1ed8d69 100644 --- a/SL/DB/MetaSetup/Department.pm +++ b/SL/DB/MetaSetup/Department.pm @@ -4,13 +4,13 @@ package SL::DB::Department; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('department'); __PACKAGE__->meta->columns( - id => { type => 'integer', not_null => 1, sequence => 'id' }, description => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, itime => { type => 'timestamp', default => 'now()' }, mtime => { type => 'timestamp' }, ); @@ -19,21 +19,5 @@ __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); -__PACKAGE__->meta->relationships( - ap => { - class => 'SL::DB::PurchaseInvoice', - column_map => { id => 'department_id' }, - type => 'one to many', - }, - - ar => { - class => 'SL::DB::Invoice', - column_map => { id => 'department_id' }, - type => 'one to many', - }, -); - -# __PACKAGE__->meta->initialize; - 1; ;