diff --git a/lib/Doctrine/ORM/AbstractQuery.php b/lib/Doctrine/ORM/AbstractQuery.php index a12336035..ecc7dbca1 100644 --- a/lib/Doctrine/ORM/AbstractQuery.php +++ b/lib/Doctrine/ORM/AbstractQuery.php @@ -281,7 +281,7 @@ abstract class AbstractQuery $value = $values[$class->getSingleIdentifierFieldName()]; - if ( ! $value) { + if ( ! isset($value)) { throw new \InvalidArgumentException( "Binding entities to query parameters only allowed for entities that have an identifier." );