notice is thrown up if no identifier values found
wrapping the setting of value with an array_key_exists to prevent a notice from being thrown
This commit is contained in:
parent
98c5b34f2b
commit
a65996f74c
@ -1695,7 +1695,9 @@ class BasicEntityPersister
|
||||
$idValues = $class->getIdentifierValues($value);
|
||||
}
|
||||
|
||||
$value = $idValues[key($idValues)];
|
||||
if (array_key_exists(key($idValues), $idValues)){
|
||||
$value = $idValues[key($idValues)];
|
||||
}
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
Loading…
Reference in New Issue
Block a user