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

Spring Data mongodb like query

I want to make a text search case insensitive with regex query with spring-data mongo . For example in SQL: SELECT * FROM Customers WHERE CustomerName LIKE 'a%'; How can i make this query with spring-data mongo using MongoRepository Query…

VIEW QUESTION
Back To Top
Search