Skip to content
Browse files

Merge pull request #501 from jeremymarc/patch-1

Allow 0 id for Entity
  • Loading branch information...
2 parents fc40c43 + 26dd533 commit ff80e99cc955c0842df9b376c7cd6506b2e41653 @guilhermeblanco guilhermeblanco committed Nov 4, 2012
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."
);

0 comments on commit ff80e99

Please sign in to comment.
Something went wrong with that request. Please try again.