mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
ORM second level cache and version (locking) #5886
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wtorsi on GitHub (Feb 15, 2018).
Originally assigned to: @wtorsi on GitHub.
Hi,
I have found strange behaviour when using Second Level Cache and Version.
When new version is set second level cache does not include it into update.
After some investigation:
The problem occurs here
DefaultEntityHydrator::buildCacheEntry, UnitOfWork does not include version field in actualData.Any ideas how to fix it?
@Ocramius commented on GitHub (Feb 15, 2018):
This is way too little information to work on anything. Please try re-creating a failure with an isolated test. See examples at https://github.com/doctrine/doctrine2/tree/master/tests/Doctrine/Tests/ORM/Functional/Ticket
@wtorsi commented on GitHub (Feb 15, 2018):
I have never done it before.
Also, i'm using Symfony Bridge, I have never configured Doctrine from the box :)
Ok, i'll try.
Here is the fast fix:
This can fix the problem.
@wtorsi commented on GitHub (Feb 16, 2018):
@Ocramius hi again, I need some help.
How I can push a commit with test to repo? It's my first time, sorry.
@Ocramius commented on GitHub (Feb 16, 2018):
@wtorsi you first need to fork this repository (top right on this page), then follow https://yangsu.github.io/pull-request-tutorial/ 👍
@wtorsi commented on GitHub (Feb 16, 2018):
Thank's
@wtorsi commented on GitHub (Feb 16, 2018):
Got it, here is the test.
Here is the test and fix for doctrine 3
@lcobucci commented on GitHub (Feb 17, 2018):
Fixed by #7069