Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 68e4c3a2

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID 68e4c3a2d381e0b1b5b8cf317a6bed22973aace9
  • Vorgänger 0d33a925
  • Nachfolger a607a2d0

FollowUp(Access)-Rose-Models: sinnvollere Namen für Relationships

Unterschiede anzeigen:

SL/DB/MetaSetup/FollowUp.pm
24 24
__PACKAGE__->meta->allow_inline_column_values(1);
25 25

  
26 26
__PACKAGE__->meta->foreign_keys(
27
  created_for => {
27
  created_by => {
28 28
    class       => 'SL::DB::Employee',
29
    key_columns => { created_for_user => 'id' },
29
    key_columns => { created_by => 'id' },
30 30
  },
31 31

  
32
  employee => {
32
  created_for => {
33 33
    class       => 'SL::DB::Employee',
34
    key_columns => { created_by => 'id' },
34
    key_columns => { created_for_user => 'id' },
35 35
  },
36 36

  
37 37
  note => {
SL/DB/MetaSetup/FollowUpAccess.pm
17 17
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
18 18

  
19 19
__PACKAGE__->meta->foreign_keys(
20
  employee => {
20
  to_follow_ups_by => {
21 21
    class       => 'SL::DB::Employee',
22 22
    key_columns => { what => 'id' },
23 23
  },
24 24

  
25
  employee_obj => {
25
  with_access => {
26 26
    class       => 'SL::DB::Employee',
27 27
    key_columns => { who => 'id' },
28 28
  },
scripts/rose_auto_create_model.pl
69 69
    orderitems                => { parts_id => 'part', trans_id => 'order', },
70 70
    delivery_order_items      => { parts_id => 'part' },
71 71
    invoice                   => { parts_id => 'part' },
72
    follow_ups                => { created_for_user => 'created_for', created_by => 'employee', },
72
    follow_ups                => { created_for_user => 'created_for', created_by => 'created_by', },
73
    follow_up_access          => { who => 'with_access', what => 'to_follow_ups_by', },
73 74

  
74 75
    periodic_invoices_configs => { oe_id => 'order' },
75 76
  },

Auch abrufbar als: Unified diff