public function getAuthorAction($id)
{
$em = $this->container->get('em');
$author = $em->getRepository('Newscoop\\Entity\\Author')->getAuthor($id)->getOneOrNullResult();
if (!$author) {
throw new NotFoundHttpException('Author was not found.');
}
return $author;
}