Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #501 from jeremymarc/patch-1

Allow 0 id for Entity
  • Loading branch information...
commit ff80e99cc955c0842df9b376c7cd6506b2e41653 2 parents fc40c43 + 26dd533
@guilhermeblanco guilhermeblanco authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Doctrine/ORM/AbstractQuery.php
View
2  lib/Doctrine/ORM/AbstractQuery.php
@@ -281,7 +281,7 @@ private function convertObjectParameterToScalarValue($value)
$value = $values[$class->getSingleIdentifierFieldName()];
- if ( ! $value) {
+ if (null === $value) {
throw new \InvalidArgumentException(
"Binding entities to query parameters only allowed for entities that have an identifier."
);
Please sign in to comment.
Something went wrong with that request. Please try again.