Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Trying to generate entities (doctrine)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Javier Garcia  
View profile  
 More options May 25 2011, 11:15 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christophe COEVOET  
View profile  
 More options May 25 2011, 11:18 am
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 :

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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Javier Garcia  
View profile  
 More options May 25 2011, 11:32 am
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pierre  
View profile  
 More options May 25 2011, 5:09 pm
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Javier Garcia  
View profile  
 More options May 26 2011, 4:33 am
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zacarías  
View profile   Translate to Translated (View Original)
 More options May 26 2011, 7:11 am
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zacarías  
View profile   Translate to Translated (View Original)
 More options May 26 2011, 7:14 am
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »