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