1
0
mirror of synced 2024-12-14 07:06:04 +03:00

refactoring getIndividualValue for valid key value

refactoring getIndividualValue
This commit is contained in:
TR 2012-11-02 00:33:55 +00:00
parent a65996f74c
commit 185a0fb19c

View File

@ -1695,9 +1695,10 @@ class BasicEntityPersister
$idValues = $class->getIdentifierValues($value);
}
if (array_key_exists(key($idValues), $idValues)){
$value = $idValues[key($idValues)];
}
$key = key($idValues);
if (null !== $key){
$value = $idValues[$key];
}
}
return $value;