IT Nursery
I’m using Doctrine’s QueryBuilder to build a query, and I want to get the total count of results from the query. $repository = $em->getRepository('FooBundle:Foo'); $qb = $repository->createQueryBuilder('n') ->where('n.bar =...
  • May 27, 2022
  • 0 Comments
How do I get the current route in Symfony 2? For example, routing.yml: somePage: pattern: /page/ defaults: { _controller: "AcmeBundle:Test:index" } How can I get this somePage value? 13...
  • May 23, 2022
  • 0 Comments
I’m trying to make a simple example in order to learn how to delete a row from a parent table and automatically delete the matching rows in the child...
  • May 22, 2022
  • 0 Comments