title: Symfony2 and MongoDB Annotations / Mapping not recognized
body: <p>I followed the steps descriped in <a href="http://symfony.com/doc/master/bundles/DoctrineMongoDBBundle/index.html" rel="nofollow">the cookbook</a>. But when i run <code>doctrine:mapping:info</code> or <code>doctrine:generate:entities</code> doctrine ignores my file.</p>
  
  <p>Here is the code, maybe someone has an advice.</p>
  
  <p>autoload.php
  
  
  <pre><code>use Doctrine\Common\Annotations\AnnotationRegistry;
  use Composer\Autoload\ClassLoader;
  
  /**
   * @var $loader ClassLoader
   */
  $loader = require __DIR__.'/../vendor/autoload.php';
  
  AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
  
  use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
  AnnotationDriver::registerAnnotationClasses();
  
  return $loader;
  </code></pre>
  
  <p>composer.json</p>
  
  <pre><code>"doctrine/orm": "&gt;=2.2.3,&lt;2.4-dev",
  "doctrine/mongodb-odm": "1.0.*@dev",
  "doctrine/mongodb-odm-bundle": "3.0.*@dev",
  "doctrine/doctrine-bundle": "1.2.*",
  "doctrine/doctrine-fixtures-bundle": "dev-master",
  "doctrine/doctrine-migrations-bundle": "dev-master",
  </code></pre>
  
  <p>config.yml:</p>
  
  <pre><code>doctrine_mongodb:
      connections:
          default:
              server: mongodb://localhost:27017
              options: {}
      default_database: test_database
      document_managers:
          default:
              auto_mapping: true
  </code></pre>
  
  <p>entity:</p>
  
  <pre><code>&lt;?php
  // src/Acme/StoreBundle/Document/Product.php
  namespace Anchorbrands\Bundle\LandingpageBundle\Entity;
  
  use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
  
  /**
  * @MongoDB\Document
  */
  class Product
  {
  /**
  * @MongoDB\Id
  */
  protected $id;
  
  /**
  * @MongoDB\String
  */
  protected $name;
  
  /**
  * @MongoDB\Float
  */
  protected $price;
  }
  </code></pre>