Fixed issue
This commit is contained in:
parent
4e4637de2e
commit
d3112bf119
@ -2314,6 +2314,10 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($entity instanceof Proxy && !$entity->__isInitialized__) {
|
||||||
|
$entity->__load();
|
||||||
|
}
|
||||||
|
|
||||||
$entityVersion = $class->reflFields[$class->versionField]->getValue($entity);
|
$entityVersion = $class->reflFields[$class->versionField]->getValue($entity);
|
||||||
|
|
||||||
if ($entityVersion != $lockVersion) {
|
if ($entityVersion != $lockVersion) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user