Le 07/04/2011 14:05, JeanChristophe a écrit :
OK but how I can designed this mapping just for this unique class file
User.php ?
The documentation on Symfony about Doctrine is very little, and the
Doctrine Documentation doesn't consider the Symfony2 context.

Thanks a lot,
JeanChristophe.
The mapping are the annotations you put in your class, not the config of DoctrineBundle. And the only difference when using annotations in the Symfony context is that they need to be prefix with orm: (as stated in the Symfony2 doc: http://symfony.com/doc/2.0/book/doctrine/orm/overview.html ). So it will be @orm:Id @orm:Entity and so on. Then the mapping is handled by Doctrine, not by Symfony so just read the Doctrine doc about it.

--
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

Reply via email to