public function getActiveUsers($public = true)
{
$em = $this->getEntityManager();
$queryBuilder = $em->getRepository('Newscoop\\Entity\\User')->createQueryBuilder('u')->where('u.status = :status')->andWhere('u.is_public = :public')->setParameters(array('status' => User::STATUS_ACTIVE, 'public' => $public));
$query = $queryBuilder->getQuery();
return $query;
}