-
I add @AfterUpdate(), but it doesn't work for my entity.
But i don't see logs at my app. |
Beta Was this translation helpful? Give feedback.
Answered by
B4nan
May 6, 2024
Replies: 2 comments 1 reply
-
You haven't shared the most important part - what you are doing, how are you updating the entity? THe hooks are only for updates produced by |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, as I said, this wont trigger any hooks, you would have to use
em.flush()
for this, notem.nativeUpdate()
(which is literally just a shortcut for query builder).