Question

I want to use full outer join by queryBuilder function. for left join i used this code:

$qb = $qb->select('person')
        ->from('S118EbrahimiBundle:PersonEntity', 'person')
        ->leftJoin('person.PhoneEntities', 'phone');

but i dont know how i can perform full outer join!

Was it helpful?

Solution

As you can see into doctrine2 documentation, it isn't possible to perform an outerjoin (with query builder help, obviously).
Two only operation you can perform are leftJoin and innerJoin

I suppose that you have to write it (as a plain query, not through query builder)

OTHER TIPS

I think it is not possible and you should use nested left join!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top