I'm new to symfony2 and trying to execte the command in neatbeans
console doctrine:generate:entities /backend/storeBundle/Entity/RolClass
it's shown the error:
[Doctrine\ORM\Mapping\MappingException]
Class "\backend\storeBundle\Entity\RolClass" is not a valid entity or
mapped super class.
The class:
<?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;
}
Searching info in this page I tried to modify the app/config.yml:
orm:
auto_generate_proxy_classes: "%kernel.debug%"
default_entity_manager: default
entity_managers:
default:
mappings:
backendstoreBundle: ~