1
0
mirror of synced 2025-02-03 05:49:25 +03:00

#6003 removed useless count() call

This commit is contained in:
Marco Pivetta 2016-09-08 00:48:52 +02:00
parent 5e51a985b7
commit de4c854ac9

View File

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