Are you getting this strange error when trying to create cache for prod enviroment? and not getting this error on dev environemnt?

[Semantical Error] The annotation "@ORM\Table" in class Me\JeevanBundle\Entity\Repository\BlogRepository was never imported. Did you maybe forget to add a "use" statement for this annotation?

Easy to fix, Open the Entity file referring to this repository file and prefix it with “\” to give absolute namespaced path.
Issue:

@ORM\Entity( repositoryClass="Me\JeevanBundle\Entity\Repository\BlogRepository" )

Fix:

@ORM\Entity( repositoryClass="\Me\JeevanBundle\Entity\Repository\BlogRepository" )

Hope this helps!

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.