Fixed issue
This commit is contained in:
parent
36f9822466
commit
00b6f62287
1 changed files with 4 additions and 0 deletions
|
@ -2353,6 +2353,10 @@ class UnitOfWork implements PropertyChangedListener
|
|||
return;
|
||||
}
|
||||
|
||||
if ($entity instanceof Proxy && !$entity->__isInitialized__) {
|
||||
$entity->__load();
|
||||
}
|
||||
|
||||
$entityVersion = $class->reflFields[$class->versionField]->getValue($entity);
|
||||
|
||||
if ($entityVersion != $lockVersion) {
|
||||
|
|
Loading…
Add table
Reference in a new issue