Sorry, but I think I didn´t explained well.

app/console doctrine:mapping:import MyBundle yml works fine, but when I try
app/console doctrine:generate:entities MyBundle

I get:
[RuntimeException]
Something went terribly wrong.

And no entity created.

Thanks in advance and congratulations for your good job.


-----Mensaje original-----
De: symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com]
En nombre de Fabien Potencier
Enviado el: sábado, 30 de abril de 2011 22:37
Para: symfony-users@googlegroups.com
Asunto: Re: [symfony-users] doctrine:generate:repositories

On 4/30/11 9:25 PM, Sergio Perez wrote:
> Hi everybody,
>
> After import (doctrine:mapping:import) from a existing database, I try
> to create the repositories with
>
> app/console doctrine:generate:repositories MyBundle and I get “SKIP no
> custom repository for MyBundle\Entity\entityname
>
> What does it means?

If means that you have not defined the "repositoryClass" option in the 
metadata. This command is not really useful anyway as it just generates 
an empty class.

Fabien

> What am I doing wrong?
>
> The correct step for import a existing database are:
>
> 1)app/console doctrine:mapping:import Bundlename
>
> 2)app/console doctrine:generate:repositories Bundlename ???
>
> Thanks
>
> Sergio Pérez
>
> *Informática ALBATRONIC, SL*
>
> Av. Blas Otero, 10 Local 1
>
> 18200 Maracena - Granada
>
> Tlf: +34 958410343
>
> Fax: +34 958421504
>
> www.albatronic.com
>
> --
> If you want to report a vulnerability issue on symfony, please send it
> to security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to