1
0
mirror of synced 2025-01-29 19:41:45 +03:00

Merge pull request #501 from jeremymarc/patch-1

Allow 0 id for Entity
This commit is contained in:
Guilherme Blanco 2012-11-04 19:22:57 -08:00
commit ff80e99cc9

View File

@ -281,7 +281,7 @@ abstract class AbstractQuery
$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."
);