Compare to null instead of using isset
This commit is contained in:
parent
84477440b6
commit
26dd533662
@ -281,7 +281,7 @@ abstract class AbstractQuery
|
|||||||
|
|
||||||
$value = $values[$class->getSingleIdentifierFieldName()];
|
$value = $values[$class->getSingleIdentifierFieldName()];
|
||||||
|
|
||||||
if ( ! isset($value)) {
|
if (null === $value) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
"Binding entities to query parameters only allowed for entities that have an identifier."
|
"Binding entities to query parameters only allowed for entities that have an identifier."
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user