You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When many updates to the same entity are queued, the SyncIndexWithObjectChangeProcessor will always keep the first representation of an entity that it fetched from Doctrine, causing all subsequent updates to resend exactly the same data.
This happens because Doctrine's manager keeps a cached version of the entity and reuses that version for subsequent calls to "find".
The solution is to clear all managed entities so Doctrine will re-fetch the entity from the database.
I will submit a PR.
The text was updated successfully, but these errors were encountered:
I hadn't noticed there was an extension for that, thanks!
Just wondering, is there a reason why the extension's behaviour isn't the default? Wouldn't it make sense to always fetch the entity's latest state, especially since this processor is called when an update is made?
When many updates to the same entity are queued, the SyncIndexWithObjectChangeProcessor will always keep the first representation of an entity that it fetched from Doctrine, causing all subsequent updates to resend exactly the same data.
This happens because Doctrine's manager keeps a cached version of the entity and reuses that version for subsequent calls to "find".
The solution is to clear all managed entities so Doctrine will re-fetch the entity from the database.
I will submit a PR.
The text was updated successfully, but these errors were encountered: