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.ClanderBundle.Entity.User.dcm.yml/
And if you use beta2 it should be
/src/Jander/ClanderBundle/Resources/config/doctrine/User.orm.yml/
--
Christophe | Stof
--
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