You need to put this part $query = $this->doctrineQuery->getResult(); $query->$this->doctrineQuery->matching($query->$this->doctrineQuery->equals($email))->setLimit(10)->execute(); in a method in a repository, and call the method from your action in the controller. than you can assign the result to the view.