1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Fixed issue

This commit is contained in:
Carnage 2015-01-10 13:59:42 +00:00 committed by Marco Pivetta
parent 4e4637de2e
commit d3112bf119

View File

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