bloody error
Symfony2, Doctrine2 cache:warmup –env=prod Semantical Error?
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!
Recent Comments
- Charles on Object doesn’t support this property or method
- Lucas on PHP : get Request protocol Http or HTTPS
- Chris on Split & Concat Snow Leopard Error : (-2753) The variable thePanel is not defined
- Get url with protocol, http or https – Richard Choi on PHP : get Request protocol Http or HTTPS
- daGrevis on PHP : get Request protocol Http or HTTPS







