public function getImageAction(Request $request, $number)
{
$em = $this->container->get('em');
$image = $em->getRepository('Newscoop\\Image\\LocalImage')->getImage($number)->getOneOrNullResult();
if (!$image) {
throw new EntityNotFoundException('Result was not found.');
}
return $image;
}