public function getDirectReplies($commentId)
{
$em = $this->getEntityManager();
$qb = $em->createQueryBuilder();
$qb->add('select', 'c.id')->add('from', 'Newscoop\\Entity\\Comment c')->add('where', 'c.parent = :p_comment_id')->setParameter('p_comment_id', $commentId);
$query = $qb->getQuery();
$commentIds = $query->getArrayResult();
$clearCommentIds = array();
foreach ($commentIds as $key => $value) {
$clearCommentIds[] = $value['id'];
}
return $clearCommentIds;
}