Look for changes in associations of entity in recomputeSingleEntityChangeSet ? #11605
Unanswered
fGuix
asked this question in
Support Questions
Replies: 0 comments
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.
-
Hello,
I'm following up on those because I get a similar problematic:
#10580
#7685
I'm completing some data on an entity in my OnFlushEventListener, and among them, I update some manyToMany relationships.
It works almost completely with
recomputeSingleEntityChangeSet()
but the relationships are not updated.Using only
computeChangeSet()
breaks the case where we are creating a new entity.The workaround I found is the following (working both in creation/edition, and updating relationships):
My comprehension of this is that the
computeChangeSet()
checks if there is changes in associations, whererecomputeSingleEntityChangeSet()
seems not.My questions:
computeChangeSet()
avoid forgetting about the creation datas ?recomputeSingleEntityChangeSet()
also control the associations?Thanks in advance for your feedback.
Beta Was this translation helpful? Give feedback.
All reactions