#6003 removed useless count()
call
This commit is contained in:
parent
5e51a985b7
commit
de4c854ac9
@ -302,9 +302,7 @@ class EntityRepository implements ObjectRepository, Selectable
|
|||||||
*/
|
*/
|
||||||
private function resolveMagicCall($method, $by, array $arguments)
|
private function resolveMagicCall($method, $by, array $arguments)
|
||||||
{
|
{
|
||||||
$argsCount = count($arguments);
|
if (! $arguments) {
|
||||||
|
|
||||||
if (0 === $argsCount) {
|
|
||||||
throw ORMException::findByRequiresParameter($method . $by);
|
throw ORMException::findByRequiresParameter($method . $by);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user