Oops, shouldn't have removed the condition completely... checking a parameter is provided
This commit is contained in:
parent
d314386060
commit
5fc6277d3f
@ -204,6 +204,11 @@ class EntityRepository implements ObjectRepository
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if (count($arguments) === 0) {
|
||||
throw ORMException::findByRequiresParameter($method.$by);
|
||||
}
|
||||
|
||||
$fieldName = lcfirst(\Doctrine\Common\Util\Inflector::classify($by));
|
||||
|
||||
if ($this->_class->hasField($fieldName) || $this->_class->hasAssociation($fieldName)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user