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
Result: {"exception":"Illuminate\\Database\\Eloquent\\RelationNotFoundException","exception_message":"Call to undefined relationship [association] on model [App\\Models\\Ingredients\\Units\\Unit]."}
Seems like it has to do with the way loadMissing() is loading these by using the same array key and value by using array_combine to combine these.
Description:
When using
Model::loadMissing()
relations containing the same name will be ignored.Steps To Reproduce:
Example code:
Result:
{"exception":"Illuminate\\Database\\Eloquent\\RelationNotFoundException","exception_message":"Call to undefined relationship [association] on model [App\\Models\\Ingredients\\Units\\Unit]."}
Seems like it has to do with the way
loadMissing()
is loading these by using the same array key and value by usingarray_combine
to combine these.$segments
:$path
:Using
load()
instead seems to work but I'm interested in keeping the same relationships while loading another relation.The text was updated successfully, but these errors were encountered: