findBy with multiple IDs findBy with multiple IDs symfony symfony

findBy with multiple IDs


You can do

$em->getRepository(Entity::class)->findBy(array('id' => $idList));