You can use `$this->repository->findOneBy(array())` instead, so you don't need the magic method.