1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Merge pull request #496 from arse/master

Testing for key existance in basicEntityPersister / getIndividualValue
This commit is contained in:
Guilherme Blanco 2012-11-05 16:20:26 -08:00
commit 57e5fa9873

View File

@ -1696,7 +1696,11 @@ class BasicEntityPersister
$idValues = $class->getIdentifierValues($value); $idValues = $class->getIdentifierValues($value);
} }
$value = $idValues[key($idValues)]; $key = key($idValues);
if (null !== $key){
$value = $idValues[$key];
}
} }
return $value; return $value;