title: Symfony2 Doctrine doctrine:generate:entities never works
body: <p>I am relatively new to Symfony2 and so far love it - except for this problem that I keep coming up against. </p>
  
  <p>The dreaded (for me): doctrine:generate:entities</p>
  
  <p>When I started my first Symfony2 project I could not get that command working and ended up just using doctrine:generate:entity instead which worked fine.</p>
  
  <p>However, this time I am trying to write an application for a system that already has database tables. I followed the instructions at: <a href="http://symfony.com/doc/current/cookbook/doctrine/reverse_engineering.html">Symfony2 Docs</a> which seemed to all work fine except, as usual for the doctrine:generate:entities bit.</p>
  
  <p>I have the following Entity file @ My/Bundle/FeedManagerBundle/Entity/Feeds.php</p>
  
  <pre><code>&lt;?php
  
  namespace My\Bundle\FeedManagerBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * Feeds
   *
   * @ORM\Table(name="feeds")
   * @ORM\Entity
   */
  class Feeds
  {
      /**
       * @var integer
       *
       * @ORM\Column(name="id", type="integer", nullable=false)
       * @ORM\Id
       * @ORM\GeneratedValue(strategy="IDENTITY")
       */
      private $id;
  
      /**
       * @var string
       *
       * @ORM\Column(name="feed_label", type="string", length=100, nullable=false)
       */
      private $feedLabel;
  
      /**
       * @var integer
       *
       * @ORM\Column(name="advertiser_id", type="integer", nullable=false)
       */
      private $advertiserId;
  
      /**
       * @var boolean
       *
       * @ORM\Column(name="active", type="boolean", nullable=false)
       */
      private $active;
  
  
  }
  </code></pre>
  
  <p>And in My/Bundle/FeedManagerBundle/Resources/config/doctrine/Feeds.orm.yml</p>
  
  <pre><code>Feeds:
      type: entity
      table: feeds
      fields:
      id:
          id: true
          type: integer
          unsigned: false
          nullable: false
          generator:
              strategy: IDENTITY
      feedLabel:
          type: string
          length: 100
          fixed: false
          nullable: false
          column: feed_label
      advertiserId:
          type: integer
          unsigned: false
          nullable: false
          column: advertiser_id
      active:
          type: boolean
          nullable: false
      lifecycleCallbacks: {  }
  </code></pre>
  
  <p>And this is the error I am getting:</p>
  
  <pre><code>$ php app/console doctrine:generate:entities My/Bundle/FeedManagerBundle/Entity/Feeds --path=src
  Generating entity "My\Bundle\FeedManagerBundle\Entity\Feeds"
  
  
  
    [Doctrine\Common\Persistence\Mapping\MappingException]                                                                         
    Invalid mapping file 'My.Bundle.FeedManagerBundle.Entity.Feeds.orm.yml' for class 'My\Bundle\FeedManagerBundle\Entity\Feeds'.  
  
  
  
  doctrine:generate:entities [--path="..."] [--no-backup] name
  </code></pre>
  
  <p>I have tried changing the name of the yml file to the full path. I have also tried changing the first line of the yml file to the full path and I have tried doing both of those things at the same time. Nothing seems to work &amp; now I am getting to pulling my hair out stage. Can anyone think of any reason why this might not be working?</p>