Doctrine Query Builder: Filter Entity Types Based on Discriminator Column

Submitted by Peter Majmesku on Wed, 06/14/2017 - 09:36
$queryBuilder $this->entityManager->createQueryBuilder()
            ->
select('mbt')
            ->
from('Bundle:MyBaseType''mbt');

        
$queryBuilder->where('mbt INSTANCE OF Bundle:SomeType');