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

we can (now) transform it into IS NULL

This commit is contained in:
Nadav 2011-08-26 07:42:16 +03:00
parent b560551b1d
commit d314386060

View File

@ -204,11 +204,6 @@ class EntityRepository implements ObjectRepository
);
}
if ( !isset($arguments[0])) {
// we dont even want to allow null at this point, because we cannot (yet) transform it into IS NULL.
throw ORMException::findByRequiresParameter($method.$by);
}
$fieldName = lcfirst(\Doctrine\Common\Util\Inflector::classify($by));
if ($this->_class->hasField($fieldName) || $this->_class->hasAssociation($fieldName)) {