You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you are retrieving the models from Vehicle, any initial configuration is going to be that of Vehicle.
Even if it would take into account the children with, an overwrite would be more conform than a merge since this is how inheritance works.
If you want child specific behavior, specifically query that model.
If you want parent specific behavior, specifically query that model.
Hello,
I'm taking the liberty of opening an issue following a potential problem that I'll describe below:
I have a parent model that I'm going to call Vehicle. Parent has two children, car and truck
When I want to retrieve a collection of all children, the with array is not merged with the parent model, so I only retrieve my "tire" relationship.
So for the moment I've had to add logic when retrieving a child model from a list to force the loading of parent/child relationships.
Do you have another solution or is this the right way to go?
The text was updated successfully, but these errors were encountered: