Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision dd6282f6

Von Moritz Bunkus vor fast 12 Jahren hinzugefügt

  • ID dd6282f6e20d531511ae35cadc491a8c7ab8bad5
  • Vorgänger 4f15333b
  • Nachfolger 27bb493f

Rose-Beziehungstypen gefixt

Behebt #2139.

Unterschiede anzeigen:

SL/DB/Assembly.pm
9 9

  
10 10
__PACKAGE__->meta->add_relationships(
11 11
  part => {
12
    type         => 'one to one',
12
    type         => 'many to one',
13 13
    class        => 'SL::DB::Part',
14 14
    column_map   => { parts_id => 'id' },
15 15
  },
SL/DB/DeliveryOrderItem.pm
14 14
__PACKAGE__->meta->make_manager_class;
15 15
__PACKAGE__->meta->add_relationship(
16 16
  unit_obj       => {
17
    type         => 'one to one',
17
    type         => 'many to one',
18 18
    class        => 'SL::DB::Unit',
19 19
    column_map   => { unit => 'name' },
20 20
  },
SL/DB/InvoiceItem.pm
13 13

  
14 14
__PACKAGE__->meta->add_relationship(
15 15
  unit_obj       => {
16
    type         => 'one to one',
16
    type         => 'many to one',
17 17
    class        => 'SL::DB::Unit',
18 18
    column_map   => { unit => 'name' },
19 19
  },
SL/DB/Order.pm
27 27
    }
28 28
  },
29 29
  periodic_invoices_config => {
30
    type                   => 'one to one',
30
    type                   => 'one to many',
31 31
    class                  => 'SL::DB::PeriodicInvoicesConfig',
32 32
    column_map             => { id => 'oe_id' },
33 33
  },
SL/DB/OrderItem.pm
17 17

  
18 18
__PACKAGE__->meta->add_relationship(
19 19
  unit_obj       => {
20
    type         => 'one to one',
20
    type         => 'many to one',
21 21
    class        => 'SL::DB::Unit',
22 22
    column_map   => { unit => 'name' },
23 23
  },
SL/DB/PeriodicInvoice.pm
6 6

  
7 7
__PACKAGE__->meta->add_relationships(
8 8
  invoice      => {
9
    type       => 'one to one',
9
    type       => 'many to one',
10 10
    class      => 'SL::DB::Invoice',
11 11
    column_map => { ar_id => 'id' },
12 12
  },
SL/DB/PeriodicInvoicesConfig.pm
6 6

  
7 7
__PACKAGE__->meta->add_relationships(
8 8
  order        => {
9
    type       => 'one to one',
9
    type       => 'many to one',
10 10
    class      => 'SL::DB::Order',
11 11
    column_map => { oe_id => 'id' },
12 12
  },
SL/DB/Tax.pm
4 4

  
5 5
use SL::DB::MetaSetup::Tax;
6 6

  
7
__PACKAGE__->meta->add_relationships(chart => { type         => 'one to one',
7
__PACKAGE__->meta->add_relationships(chart => { type         => 'many to one',
8 8
                                                class        => 'SL::DB::Chart',
9 9
                                                column_map   => { chart_id => 'id' },
10 10
                                              },
SL/DB/Unit.pm
7 7

  
8 8
__PACKAGE__->meta->add_relationships(
9 9
  base => {
10
    type         => 'one to one',
10
    type         => 'many to one',
11 11
    class        => 'SL::DB::Unit',
12 12
    column_map   => { base_unit => 'name' },
13 13
  },

Auch abrufbar als: Unified diff