State property not being updated on flush() #10194
Unanswered
nathansalter
asked this question in
Support Questions
Replies: 2 comments
-
I'm moving this to support until we have clear steps to reproduce a bug on a recent version of the ORM. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Turns out the issue here was us updating a child entity to the main entity and flushing that change, then trying to flush this change. Not sure why this was causing the issue, and I've not been able to come up with a small test-case. Going to keep an eye on this and investigate further if it happens again. |
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
-
Bug Report
Summary
Basically, we've got a lot of entities in the DB, but sometimes the
state
property on some of these entities doesn't get updated onflush()
. This has ended up with this code snippet being used in our application:This doesn't happen all the time, and only happens on the state property, not any of the others. I'm assuming that somewhere, the changeset is being recalculated before the changes are persisted, but I can't find any of our listeners which are doing this.
Current behavior
State property is not updated.
How to reproduce
This is why I've waited so long to report this, I've been completely unable to replicate this issue, printing out lines and running debug, but every time I've tried this it's worked. The problem is consistent, and happens when only the state is updated, rather than any other properties. Any clues as to what to look for or how to track down what's happening here would be really appreciated.
Expected behavior
State property is updated.
Beta Was this translation helpful? Give feedback.
All reactions