public function findOr404($id)
{
$em = $this->get('em');
$translator = $this->get('translator');
$node = $em->getRepository('Newscoop\\NewscoopBundle\\Entity\\Topic')->findOneBy(array('id' => $id));
if (!$node) {
return array('status' => false, 'message' => $translator->trans('topics.failedfind', array('%id%' => $id), 'topics'));
}
return $node;
}