title: Symfony2 Class is not a valid entity or mapped super class
body: <p>I'm new to symfony2 and trying to execte the command in neatbeans</p>
  
  <pre><code>console doctrine:generate:entities /backend/storeBundle/Entity/RolClass
  </code></pre>
  
  <p>it's shown the error:</p>
  
  <pre><code>[Doctrine\ORM\Mapping\MappingException]
  Class "\backend\storeBundle\Entity\RolClass" is not a valid entity or 
  mapped super class.                                                               
  </code></pre>
  
  <p>The class:</p>
  
  <pre><code>&lt;?php
  namespace backend\storeBundle\Entity;
  use Doctrine\ORM\Mapping as ORM;
  /**
   * @ORM\Entity
  * @ORM\Table(name="nomrol")
  */
    class RolClass {
  /**
   * @ORM\Column(type="integer")
   * @ORM\Id
   * @ORM\GeneratedValue(strategy="AUTO")
   */
  protected $id;
  /**
   * @ORM\Column(type="string",length=100)
   */
  protected $namerolcust;
  }
  </code></pre>
  
  <p>Searching info in this page I tried to modify the app/config.yml:</p>
  
  <pre><code>orm:
      auto_generate_proxy_classes: "%kernel.debug%"
      default_entity_manager: default
      entity_managers:
          default:
              mappings:
                  backendstoreBundle: ~
  </code></pre>