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
In nested hasOne and hasMany associations, it's useful to have the associated objects have pointers back to the origin object. This can't be done by overriding init since the object won't have been fetched and thus the associated objects may not exist. It can't be done by overriding the association method and calling _super because the association is defined first in this class, not a parent.
In nested
hasOne
andhasMany
associations, it's useful to have the associated objects have pointers back to the origin object. This can't be done by overridinginit
since the object won't have been fetched and thus the associated objects may not exist. It can't be done by overriding the association method and calling_super
because the association is defined first in this class, not a parent.I suggest the following:
This would declare
owner
properties on the associatedFoo
s andBar
s. For exampleThe text was updated successfully, but these errors were encountered: