symfony 2 : Namespace “Acme” does not contain any mapped entities

后端 未结 7 2371
醉酒成梦
醉酒成梦 2021-02-13 04:23

I am following the book and on the page http://symfony.com/doc/current/book/doctrine.html

While following the book I am trying to work on relationship of product and cat

7条回答
  •  自闭症患者
    2021-02-13 04:42

    Check that the PHP opening and (optional) closing tags

    and

    ?>
    

    are correct in your file.

    They are not included when you copy paste from the tutorial at http://symfony.com/doc/current/book/doctrine.html

    I was stuck at the same problem. After looking at this post I started wondering why the syntax highlighting was broken and discovered that the opening and closing tags were missing. The error disappeared when the tags were included.

提交回复
热议问题