Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b8b112a3

Von Sven Schöling vor mehr als 11 Jahren hinzugefügt

  • ID b8b112a39bd601b0bc717646d78de470631da22a
  • Vorgänger c0931303
  • Nachfolger 2d7e4203

MetaSetup neu generiert

Unterschiede anzeigen:

SL/DB/MetaSetup/Pricegroup.pm
6 6

  
7 7
use base qw(SL::DB::Object);
8 8

  
9
__PACKAGE__->meta->setup(
10
  table   => 'pricegroup',
9
__PACKAGE__->meta->table('pricegroup');
11 10

  
12
  columns => [
13
    id         => { type => 'integer', not_null => 1, sequence => 'id' },
14
    pricegroup => { type => 'text', not_null => 1 },
15
  ],
11
__PACKAGE__->meta->columns(
12
  id         => { type => 'integer', not_null => 1, sequence => 'id' },
13
  pricegroup => { type => 'text', not_null => 1 },
14
);
15

  
16
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
17

  
18
__PACKAGE__->meta->relationships(
19
  delivery_order_items => {
20
    class      => 'SL::DB::DeliveryOrderItem',
21
    column_map => { id => 'pricegroup_id' },
22
    type       => 'one to many',
23
  },
16 24

  
17
  primary_key_columns => [ 'id' ],
25
  invoice => {
26
    class      => 'SL::DB::InvoiceItem',
27
    column_map => { id => 'pricegroup_id' },
28
    type       => 'one to many',
29
  },
30

  
31
  orderitems => {
32
    class      => 'SL::DB::OrderItem',
33
    column_map => { id => 'pricegroup_id' },
34
    type       => 'one to many',
35
  },
18 36
);
19 37

  
38
# __PACKAGE__->meta->initialize;
39

  
20 40
1;
21 41
;

Auch abrufbar als: Unified diff