2

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!

Omid Ebrahimi
  • 1,150
  • 2
  • 20
  • 38

2 Answers2

3

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)

DonCallisto
  • 29,419
  • 9
  • 72
  • 100
1

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

ABS
  • 2,626
  • 3
  • 28
  • 44