Lines 597-605
__PACKAGE__->has_many(
Link Here
|
597 |
|
597 |
|
598 |
return { |
598 |
return { |
599 |
"$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.subscriptionid" }, |
599 |
"$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.subscriptionid" }, |
600 |
|
600 |
"$args->{foreign_alias}.record_table" => __PACKAGE__->table, |
601 |
"$args->{foreign_alias}.field_id" => |
|
|
602 |
{ -in => \'(SELECT id FROM additional_fields WHERE tablename = "subscription")' }, |
603 |
}; |
601 |
}; |
604 |
}, |
602 |
}, |
605 |
{ cascade_copy => 0, cascade_delete => 0 }, |
603 |
{ cascade_copy => 0, cascade_delete => 0 }, |
Lines 611-614
__PACKAGE__->add_columns(
Link Here
|
611 |
); |
609 |
); |
612 |
|
610 |
|
613 |
# You can replace this text with custom content, and it will be preserved on regeneration |
611 |
# You can replace this text with custom content, and it will be preserved on regeneration |
614 |
1; |
612 |
1; |
615 |
- |
|
|