How to update with Associations #14014
Answered
by
ephys
MichelFonseca1024
asked this question in
Help & Questions
-
I managed to do the insert with relationships, but I can’t update. In the documentation it shows how to create with relationships, however it doesn't say how or if it is possible to update.
|
Beta Was this translation helpful? Give feedback.
Answered by
ephys
Jan 25, 2022
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ephys
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Model#save
,Model.update
, andModel#update
methods are not aware of associations, but you can callsave
on the associated entity itself