refactoring getIndividualValue for valid key value
refactoring getIndividualValue
This commit is contained in:
parent
a65996f74c
commit
185a0fb19c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user