1
0
mirror of synced 2024-12-13 14:56:01 +03:00

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:
TR 2012-11-01 23:59:57 +00:00
parent 98c5b34f2b
commit a65996f74c

View File

@ -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;