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

后端 未结 7 2331
醉酒成梦
醉酒成梦 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:55

    With

    doctrine:generate:entity
    

    you'll create new entity.

    And when you add some attributes by hand with

    doctrine:generate:entities AcmeDemoBundle:User
    

    you'll create all accessor (getter and setter) of the entity User of AcmeDemoBundle

提交回复
热议问题