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);