mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2130: A problem with obtaining Entity without cache #2680
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 @doctrinebot on GitHub (Nov 7, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user sergsw:
I use a custom validation constraint.
In the constraint I want to compare old and new entity, but when I take a entity from database, I got a entity witch is equvivalent the new entity.
I tried to use a query without cache
This don't solved my problem.
I tried to use a query without cache and with refresh
This time I got a old entity from database, but the new entity was rollback to the old entity.
In attach is my entity and TestCase.
@doctrinebot commented on GitHub (Nov 7, 2012):
Comment created by sergsw:
While I solved this problem so
I registered mine own hint.
I added folow code.
And
I know it's wrong, because the new instanse overrided the old instance.
@doctrinebot commented on GitHub (Nov 7, 2012):
Comment created by sergsw:
It's my fall.
I forgot deattach entity.
@doctrinebot commented on GitHub (Nov 7, 2012):
Issue was closed with resolution "Invalid"