Error: Call to a member function getUrl() on a non-object
500 Internal Server Error - FatalErrorException
Stack Trace
-
in src/MaciejJeziorski/OSKLawPerfectBundle/Controller/PublicationsController.php at line 66
$article = $em->getRepository('MaciejJeziorskiOSKLawPerfectBundle:Article')->findOneByShortcut($shortcut);
// Przekierowanie "w razie gdyby" coś nawaliło
if( null != $article->getUrl() ) {
return $this->redirect( $article->getUrl() );
}