1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

Fixed issue

This commit is contained in:
Carnage 2015-01-10 13:59:42 +00:00 committed by Marco Pivetta
parent 36f9822466
commit 00b6f62287

View file

@ -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) {