Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • I have to include where clause for the specific columns on which I want join to work? Commented Jun 1, 2012 at 20:05
  • Nope. Once you have the relations set in your entities the query builder is smart enough to figure out the join details. One of the nice things about qb.If you still have trouble getting the above query to work then post the relevant portions of your entities. Commented Jun 1, 2012 at 20:08
  • it is now giving me an error of undefinded method... Call to undefined method Symfony\Bundle\DoctrineBundle\Registry::createQueryBuilder() Commented Jun 1, 2012 at 20:11
  • 1
    Should be $this->getDoctrine->getEntityManager()->createQueryBuilder(); Commented Jun 1, 2012 at 20:24
  • Can I save this whole result that i get from query into an array ? Commented Jun 1, 2012 at 20:32