$result =
[];
$query =
$this->
getQuery($context);
foreach ($groupIds as $groupId) { $query->
setParameter(':id',
$groupId);
$data =
$query->
execute()->
fetchAll(PDO::FETCH_ASSOC
);
if (empty($data)) { continue;
} $result[$groupId] =
$this->
hydrateGroup($data);
} return $result;
} /**
* @param array[] $data
*
* @return Group
*/
private function hydrateGroup($data) {