Revision 0b33cc60
Von Moritz Bunkus vor mehr als 8 Jahren hinzugefügt
SL/DB/MetaSetup/FollowUp.pm | ||
---|---|---|
24 | 24 |
__PACKAGE__->meta->allow_inline_column_values(1); |
25 | 25 |
|
26 | 26 |
__PACKAGE__->meta->foreign_keys( |
27 |
created_by => { |
|
27 |
created_by_employee => {
|
|
28 | 28 |
class => 'SL::DB::Employee', |
29 | 29 |
key_columns => { created_by => 'id' }, |
30 | 30 |
}, |
31 | 31 |
|
32 |
created_for => { |
|
32 |
created_for_employee => {
|
|
33 | 33 |
class => 'SL::DB::Employee', |
34 | 34 |
key_columns => { created_for_user => 'id' }, |
35 | 35 |
}, |
scripts/rose_auto_create_model.pl | ||
---|---|---|
70 | 70 |
orderitems => { parts_id => 'part', trans_id => 'order', }, |
71 | 71 |
delivery_order_items => { parts_id => 'part' }, |
72 | 72 |
invoice => { parts_id => 'part' }, |
73 |
follow_ups => { created_for_user => 'created_for', created_by => 'created_by', },
|
|
73 |
follow_ups => { created_for_user => 'created_for_employee', created_by => 'created_by_employee', },
|
|
74 | 74 |
follow_up_access => { who => 'with_access', what => 'to_follow_ups_by', }, |
75 | 75 |
|
76 | 76 |
periodic_invoices_configs => { oe_id => 'order' }, |
Auch abrufbar als: Unified diff
S:D:FollowUp: Namen der Relationen created_by…/created_for… eindeutig gemacht
Die Spalten heißen leider created_by und created_for_user. Damit es bei
der Benutzung nicht zu Verwirrungen zwischen Spaltennamen und den Namen
der Relationships kommt, werden die Relationshipnamen schlicht eindeutig
umbenannt.
Bisher hat kein Rose-Code diese Relationships genutzt. Nur der
CustomerVendor-Controller hat die Spaltennamen benutzt.