1
0
mirror of synced 2025-02-02 21:41:45 +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)
{
$argsCount = count($arguments);
if (0 === $argsCount) {
if (! $arguments) {
throw ORMException::findByRequiresParameter($method . $by);
}