Query builder instance of multiple values

28 Views Asked by At

How can I update my query in order to check the instance of in an array of possible values?

For my example below I would like to select the posts that have the author instances of either UserType or AdminType:

$qb->select('post')
    ->from('Posts\Entity\Post','post')        
    ->where('post.author INSTANCE OF '.UserType::class);
0

There are 0 best solutions below