Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/11/2011, 05:50
Enano_la22
 
Fecha de Ingreso: agosto-2011
Mensajes: 78
Antigüedad: 12 años, 8 meses
Puntos: 1
Problema con Generating a CRUD Controller Based on a Doctrine Entity

Hola a todos, tengo un problema al intenta hacer Generating a CRUD Controller Based on a Doctrine Entity...me estoy guiando segun la pagina de symfony http://symfony.com/doc/current/bundles/SensioGeneratorBundle/commands/generate_doctrine_crud.html... yo tengo mi bundle ProyectoBundle dentro de la carpeta Acme. y luego en entity una clase persona con dos atributos, nombre y apellido con sus getters y setters...la cree para probar esto,..pero cuando ejecuto el comando

php app/console generate:doctrine:crud

Me sale


Welcome to the Doctrine2 CRUD generator



This command helps you generate CRUD controllers and templates.

First, you need to give the entity for which you want to generate a CRUD.
You can give an entity that does not exist yet and the wizard will help
you defining it.

You must use the shortcut notation like AcmeBlogBundle:Post.

The Entity shortcut name:


Entonces yo ingreso:

The Entity shortcut name: AcmeProyectoBundle:Persona

y me sale este error

[Doctrine\ORM\Mapping\MappingException]
Class Acme\ProyectoBundle\Entity\Persona is not a valid entity or mapped super class.



doctrine:generate:crud [--entity="..."] [--route-prefix="..."] [--with-write] [--format="..."]

Alguien sabe que puede ser?

gracias!
__________________
Gimnasia y esgrima de la plata

Última edición por Enano_la22; 30/11/2011 a las 07:34