Is it possible to use upsert with observer ? #47208
Unanswered
dutchman1990
asked this question in
Q&A
Replies: 1 comment
-
This behavior is expected as mentioned here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using an observer to update or insert created_by and updated_by field in database. It's working with
updateOrCreate
, but it's completely ignoing while usingupsert
In my case I have written following code
This operation is working fine but it's ignoring created_by and updated_by in DB and my observer is written like this.
Any way to prevent the observer not to ignore those fields?
Beta Was this translation helpful? Give feedback.
All reactions