Projekt

Allgemein

Profil

Herunterladen (593 Bytes) Statistiken
| Zweig: | Markierung: | Revision:
82515b2d Sven Schöling
package SL::DB::Vendor;

use strict;

use SL::DB::MetaSetup::Vendor;

use SL::DB::VC;

__PACKAGE__->meta->add_relationship(
shipto => {
type => 'one to many',
class => 'SL::DB::Shipto',
column_map => { id => 'trans_id' },
manager_args => { sort_by => 'lower(shipto.shiptoname)' },
query_args => [ 'shipto.module' => 'CT' ],
},
business => {
type => 'one to one',
class => 'SL::DB::Business',
column_map => { business_id => 'id' },
},
);

__PACKAGE__->meta->make_manager_class;
__PACKAGE__->meta->initialize;

1;