1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Allow 0 id for Entity

When using a 0 id, it's throwing InvalidArgumentException (Binding entities to query parameters only allowed for entities that have an identifier.)
This commit is contained in:
Jeremy Marc 2012-11-04 17:41:08 -08:00
parent fc40c437cb
commit 84477440b6

View File

@ -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."
);