How to address the bundle in php app/console generate:doctrine:crud

前端 未结 6 1535
我在风中等你
我在风中等你 2021-01-21 01:40

In my symfony 2 project I have a bundle at

src/Cinergy/Bundle/PeopleServiceBundle

Now I\'d like to generate a CRUD controller based on a doctri

6条回答
  •  甜味超标
    2021-01-21 01:59

    First you need to register your bundle into your AppKernel.

    Then simply run the following command.
    Don't put @ before the bundle's name

    php app/console generate:doctrine:crud --entity=PeopleServiceBundle:Group
    

    More about generating a CRUD controller based on a Doctrine entity.

提交回复
热议问题