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
Model.createOne() returns the created model instance. Model.update() returns the updated instance if the configuration parameter return is set to `true.
How come relationships do not have these options? The current alternative is to create/modify the relationship, then perform a findRelationships() to get the newly created data. A return parameter (or implicit return) would help to streamline the actions into a single function call. Relationship methods are also missing, for example, a throwIfNotFound parameter, meaning you have to check and throw the error manually.
The text was updated successfully, but these errors were encountered:
Model.createOne()
returns the created model instance.Model.update()
returns the updated instance if the configuration parameterreturn
is set to `true.How come relationships do not have these options? The current alternative is to create/modify the relationship, then perform a
findRelationships()
to get the newly created data. Areturn
parameter (or implicit return) would help to streamline the actions into a single function call. Relationship methods are also missing, for example, athrowIfNotFound
parameter, meaning you have to check and throw the error manually.The text was updated successfully, but these errors were encountered: