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

#6174 #5570 CS - alignment

This commit is contained in:
Marco Pivetta 2016-12-18 14:27:35 +01:00
parent 569c08ce55
commit cfb7461f51

View File

@ -1891,7 +1891,8 @@ class UnitOfWork implements PropertyChangedListener
return $managedCopy;
}
private function ensureVersionMatch(ClassMetadata $class, $entity, $managedCopy) {
private function ensureVersionMatch(ClassMetadata $class, $entity, $managedCopy)
{
if ($class->isVersioned && $this->isLoaded($managedCopy) && $this->isLoaded($entity)) {
$reflField = $class->reflFields[$class->versionField];
$managedCopyVersion = $reflField->getValue($managedCopy);