Open mkrecek234 opened 2 years ago
discussion:
I think no field (nor reference, user action, ...) should be added automatically, because if anything is added automatically:
However, when such field ())ref, ...) is added to the outer model, the configured properties (class, type, ...) must be inherited as defaults.
If you create an aggregate Model an group by certain fields which are hasOne references in the source model, it would be convenient to also have/keep those references in the aggregate Model, so if source model has a hasOne reference called 'tax_rule_id':
the aggregateModel should then allow
$tax_rule_name = $taxposition->ref('tax_rule_id')->getTitle();
for example.