I was wondering if there is a way to search in entity without applying any filters. For Example I would like to build a textfiled in my template where a ajax post method is calling to a controller with purpose searching the whole entity.
$user = $this->getDoctrine() ->getRepository('AppBundle:QCE_SUBD') ->find('%'.$SearchParam.'%') ->getQuery(); $DSUB = $user->getArrayResult(); dump($DSUB);
I;m not sure how the function should be written, so if some one is willing to help it will be highly appreciate :)