Trying to generate entities (doctrine)
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Javier Garcia <tirengar... @gmail.com>
Date: Wed, 25 May 2011 08:15:44 -0700 (PDT)
Local: Wed, May 25 2011 11:15 am
Subject: Trying to generate entities (doctrine)
Hi,
I'm using this command:
php app/console doctrine:generate:entities ClanderBundle
and I'm getting this error:
[ErrorException]
Notice: Undefined index: Jander\ClanderBundle\Entity\Jander
\ClanderBundle\Entity\User in /home/me/Symfony/vendor/doctrine/lib/
Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php line 121
In src/Jander/ClanderBundle/Resources/config/doctrine/
Jander.ClanderBundle.Entity.User.orm.yml I have this:
Acme\HelloBundle\Entity\User:
type: entity
table: user
id:
id:
type: integer
generator:
strategy: AUTO
fields:
name:
type: string
length: 255
Any idea?
sf2
Javi
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Christophe COEVOET <s... @notk.org>
Date: Wed, 25 May 2011 17:18:13 +0200
Local: Wed, May 25 2011 11:18 am
Subject: Re: [symfony-users] Trying to generate entities (doctrine)
Le 25/05/2011 17:15, Javier Garcia a �crit :
> Hi,
> I'm using this command:
> php app/console doctrine:generate:entities ClanderBundle
> and I'm getting this error:
> [ErrorException] > Notice: Undefined index: Jander\ClanderBundle\Entity\Jander > \ClanderBundle\Entity\User in /home/me/Symfony/vendor/doctrine/lib/ > Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php line 121
> In src/Jander/ClanderBundle/Resources/config/doctrine/ > Jander.ClanderBundle.Entity.User.orm.yml I have this:
> Acme\HelloBundle\Entity\User: > type: entity > table: user > id: > id: > type: integer > generator: > strategy: AUTO > fields: > name: > type: string > length: 255
> Any idea?
> sf2
> Javi
The mapping file path is wrong. If you are using beta1 or older it
should be
/src/Jander/ClanderBundle/Resources/config/doctrine/metadata/orm/Jander.Cla nderBundle.Entity.User.dcm.yml/
And if you use beta2 it should be /src/Jander/ClanderBundle/Resources/config/doctrine/User.orm.yml/
-- Christophe | Stof
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Javier Garcia <tirengar... @gmail.com>
Date: Wed, 25 May 2011 08:32:24 -0700 (PDT)
Local: Wed, May 25 2011 11:32 am
Subject: Re: Trying to generate entities (doctrine)
Thanks Christophe but now I'm getting this:
Namespace "ClanderBundle" does not contain any mapped entities.
This is my what I have in /src/Jander/ClanderBundle/Resources/config/
doctrine/User.orm.yml
Jander\ClanderBundle\Entity\User:
type: entity
table: user
id:
id:
type: integer
generator:
strategy: AUTO
fields:
name:
type: string
length: 255
I removed my old /src/Jander/ClanderBundle/Resources/config/doctrine/
metadata/orm/Jander.ClanderBundle.Entity.User.dcm.yml/ and clean the
cache.
Javi
On May 25, 5:18 pm, Christophe COEVOET <s... @notk.org> wrote:
> Le 25/05/2011 17:15, Javier Garcia a �crit :
> > Hi,
> > I'm using this command:
> > php app/console doctrine:generate:entities ClanderBundle
> > and I'm getting this error:
> > [ErrorException]
> > Notice: Undefined index: Jander\ClanderBundle\Entity\Jander
> > \ClanderBundle\Entity\User in /home/me/Symfony/vendor/doctrine/lib/
> > Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php line 121
> > In src/Jander/ClanderBundle/Resources/config/doctrine/
> > Jander.ClanderBundle.Entity.User.orm.yml I have this:
> > Acme\HelloBundle\Entity\User:
> > type: entity
> > table: user
> > id:
> > id:
> > type: integer
> > generator:
> > strategy: AUTO
> > fields:
> > name:
> > type: string
> > length: 255
> > Any idea?
> > sf2
> > Javi
> The mapping file path is wrong. If you are using beta1 or older it
> should be
> /src/Jander/ClanderBundle/Resources/config/doctrine/metadata/orm/Jander.Cla nderBundle.Entity.User.dcm.yml/
> And if you use beta2 it should be
> /src/Jander/ClanderBundle/Resources/config/doctrine/User.orm.yml/
> --
> Christophe | Stof
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Pierre <p... @pierre-minnieur.de>
Date: Wed, 25 May 2011 14:09:14 -0700 (PDT)
Local: Wed, May 25 2011 5:09 pm
Subject: Re: Trying to generate entities (doctrine)
I bet the following will result in a "could not guess where to put the classes in" error:
php app/console doctrine:generate:entities Jander\\CalendarBundle
But this should work right now:
php app/console doctrine:generate:entities --path=src Jander\\CalendarBundle
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Javier Garcia <tirengar... @gmail.com>
Date: Thu, 26 May 2011 01:33:41 -0700 (PDT)
Local: Thurs, May 26 2011 4:33 am
Subject: Re: Trying to generate entities (doctrine)
Thanks that worked!
On May 25, 11:09 pm, Pierre <p... @pierre-minnieur.de> wrote:
> I bet the following will result in a "could not guess where to put the
> classes in" error:
> php app/console doctrine:generate:entities Jander\\CalendarBundle
> But this should work right now:
> php app/console doctrine:generate:entities --path=src
> Jander\\CalendarBundle
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Zacarías <zacarias.calab... @gmail.com>
Date: Thu, 26 May 2011 04:11:12 -0700 (PDT)
Local: Thurs, May 26 2011 7:11 am
Subject: Re: Trying to generate entities (doctrine)
Hola Javier,
estoy siguiendo el hilo de esta entrada porque me encuentro con el
mismo problema que tu, "[ErrorException] .../Driver/
AbstractFileDriver.php line 121"
He intentado dearrollar los pasos que Pierre te indica y que a ti te
funcionana pero no hay manera, me sigue apareciendo el mismo error.
¿Has tenido que hacer algo más o editar alguna configuración?
En saludo y gracias de antemano por la respuesta,
Zacarías
On 26 mayo, 10:33, Javier Garcia <tirengar... @gmail.com> wrote:
> Thanks that worked!
> On May 25, 11:09 pm, Pierre <p... @pierre-minnieur.de> wrote:
> > I bet the following will result in a "could not guess where to put the
> > classes in" error:
> > php app/console doctrine:generate:entities Jander\\CalendarBundle
> > But this should work right now:
> > php app/console doctrine:generate:entities --path=src
> > Jander\\CalendarBundle
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Zacarías <zacarias.calab... @gmail.com>
Date: Thu, 26 May 2011 04:14:43 -0700 (PDT)
Local: Thurs, May 26 2011 7:14 am
Subject: Re: Trying to generate entities (doctrine)
Listo,
me falataba eliminar el cache y los archivos yml con la notación de la
beta1, pero gracias de todas formas.
Saludos,
Zacarías
On 26 mayo, 13:11, Zacarías <zacarias.calab... @gmail.com> wrote:
> Hola Javier,
> estoy siguiendo el hilo de esta entrada porque me encuentro con el
> mismo problema que tu, "[ErrorException] .../Driver/
> AbstractFileDriver.php line 121"
> He intentado dearrollar los pasos que Pierre te indica y que a ti te
> funcionana pero no hay manera, me sigue apareciendo el mismo error.
> ¿Has tenido que hacer algo más o editar alguna configuración?
> En saludo y gracias de antemano por la respuesta,
> Zacarías
> On 26 mayo, 10:33, Javier Garcia <tirengar... @gmail.com> wrote:
> > Thanks that worked!
> > On May 25, 11:09 pm, Pierre <p... @pierre-minnieur.de> wrote:
> > > I bet the following will result in a "could not guess where to put the
> > > classes in" error:
> > > php app/console doctrine:generate:entities Jander\\CalendarBundle
> > > But this should work right now:
> > > php app/console doctrine:generate:entities --path=src
> > > Jander\\CalendarBundle
You must
Sign in before you can post messages.
You do not have the permission required to post.