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

Oops, shouldn't have removed the condition completely... checking a parameter is provided

This commit is contained in:
Nadav 2011-08-26 07:51:29 +03:00
parent d314386060
commit 5fc6277d3f

View File

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