title: How to address the bundle in php app/console generate:doctrine:crud
body: <p>In my symfony 2 project I have a bundle at</p>
  
  <pre><code>src/Cinergy/Bundle/PeopleServiceBundle
  </code></pre>
  
  <p>Now I'd like to generate a CRUD controller based on a doctrine entity, but I'm constantly failing to enter the correct string for the entity parameter.</p>
  
  <p>I tried things like:</p>
  
  <pre><code>php app/console generate:doctrine:crud --entity=Cinergy/Bundle/PeopleServiceBundle:Group
  </code></pre>
  
  <p>or</p>
  
  <pre><code>php app/console generate:doctrine:crud --entity=@PeopleServiceBundle:Group
  </code></pre>
  
  <p>All of them return erros like:</p>
  
  <pre><code>[Doctrine\ORM\ORMException]                             
  Unknown Entity namespace alias '@PeopleServiceBundle'.
  </code></pre>
  
  <p>What's the right syntax for the <code>--entity</code> parameter? Or is there something missing after all?</p>
  
  <p>This is how the directory structure looks right now:</p>
  
  <pre><code>src/Cinergy/Bundle/PeopleServiceBundle/
  ├── Controller
  │   ├── GroupController.php
  │   └── PersonController.php
  ├── DependencyInjection
  │   ├── Configuration.php
  │   └── PeopleServiceExtension.php
  ├── PeopleServiceBundle.php
  ├── Resources
  │   ├── config
  │   │   ├── routing.yml
  │   │   └── services.yml
  │   ├── doc
  │   │   └── index.rst
  │   ├── public
  │   │   ├── css
  │   │   ├── images
  │   │   └── js
  │   ├── translations
  │   │   └── messages.fr.xliff
  │   └── views
  │       └── Default
  │           └── index.html.twig
  └── Tests
      └── Controller
          ├── GroupControllerTest.php
          └── PersonControllerTest.php
  </code></pre>