refactoring getIndividualValue for valid key value
refactoring getIndividualValue
This commit is contained in:
parent
a65996f74c
commit
185a0fb19c
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue