Lines 891-900
__PACKAGE__->has_many(
Link Here
|
891 |
|
891 |
|
892 |
return { |
892 |
return { |
893 |
"$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.ordernumber" }, |
893 |
"$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.ordernumber" }, |
894 |
|
894 |
"$args->{foreign_alias}.record_table" => __PACKAGE__->table, |
895 |
# TODO Add column additional_field_values.tablename to avoid subquery ? |
|
|
896 |
"$args->{foreign_alias}.field_id" => |
897 |
{ -in => \'(SELECT id FROM additional_fields WHERE tablename = "aqorders")' }, |
898 |
}; |
895 |
}; |
899 |
}, |
896 |
}, |
900 |
{ cascade_copy => 0, cascade_delete => 0 }, |
897 |
{ cascade_copy => 0, cascade_delete => 0 }, |