Error: Cannot access protected property MaciejJeziorski\MichalPielatWebsiteBundle\Entity\Comment::$meme
500 Internal Server Error - FatalErrorException
Stack Trace
-
in src/MaciejJeziorski/MichalPielatWebsiteBundle/Controller/RatingsController.php at line 26
$comment = $this->getDoctrine()->getRepository("MaciejJeziorskiMichalPielatWebsiteBundle:Comment")->find($id);
if( null != $comment ) {
if( null != $comment->meme ) {
$this->source = "MJMPWB_singlepage";
$this->id = $comment->meme->id;
}