skip to Main Content

How can I use a custom method in Symfony? – PHP

In my Data Repository I created a function: public function myData(){ $data = $this->createQueryBuilder('data') ->leftJoin('data.fields', 'f') ->andWhere('f.name = :field') ->setParameter('field', 'company'); $result = $data->getQuery()->execute(); return $result; } In my Controller I want to use this function: class PagesController extends AbstractController…

VIEW QUESTION
Back To Top
Search