public function getComment($id, $getDeleted = true)
{
$em = $this->getEntityManager();
$queryBuilder = $em->getRepository('Newscoop\\Entity\\Comment')->createQueryBuilder('c')->andWhere('c.id = :id')->setParameter('id', $id);
if (!$getDeleted) {
$queryBuilder->andWhere('c.status != :status')->setParameter('status', Comment::STATUS_DELETED);
}
$query = $queryBuilder->getQuery();
return $query;
}