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

前端 未结 6 1542
我在风中等你
我在风中等你 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 02:12

    After all it turned out that I have to create the entity before I can create the CRUD controller for it. Of course that makes sense. Unfortunately the Sensio Generator Bundle documentation does list the operations in the oposite order which pushed me into the wrong direction.

    This means the correct order ist

    1. Generating a New Bundle Skeleton
    2. Generating a New Doctrine Entity Stub
    3. Generating a CRUD Controller Based on a Doctrine Entity

提交回复
热议问题