1 package SL::DB::Customer;
5 use SL::DB::MetaSetup::Customer;
9 __PACKAGE__->meta->add_relationship(
11 type => 'one to many',
12 class => 'SL::DB::Shipto',
13 column_map => { id => 'trans_id' },
14 manager_args => { sort_by => 'lower(shipto.shiptoname)' },
15 query_args => [ 'module' => 'CT' ],
19 class => 'SL::DB::Business',
20 column_map => { business_id => 'id' },
24 __PACKAGE__->meta->make_manager_class;
25 __PACKAGE__->meta->initialize;
30 return join ', ', grep { $_ } $self->street, $self->zipcode, $self->city;