Oops, shouldn't have removed the condition completely... checking a parameter is provided
This commit is contained in:
parent
d314386060
commit
5fc6277d3f
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue