Well, I had to generate all entities for my Application Bundle and DoctrineUserBundle separatly.
php app/console doctrine:generate:entities --bundle="Application/MyBundle" Something strange again: I had to declare a 'Id' attribute to my personal user class "Application\MyBundle\Entity\User.php" because Symfony returns this error: *No identifier/primary key specified for Entity "Application\MyBundle\Entity\User.php". Every Entity must have an identifier/primary key * (I can understand this ) Like DoctrineUserBundle readme says, I need to extends its BaseUser clas to create my custom User class, so I used: class User extends BaseUser /** * User id * * @orm:Id * @orm:column(name="id", type="integer") */ protected $id; ... But when I "update" my schema, another error occurs: php app/console doctrine:schema:update -> Duplicate definition of column 'id' on entity 'Application\MyBundle\Entity\User' in a field or discriminator column mapping. - I want to use same attribut name :/ Regards 2010/11/8 c6dney c6dney <[email protected]> > > So far I've just been cleaning up the duplicates by hand because I never > had time to debug the problem. > > Same for me, it looks very strange :( > > > 2010/11/8 Jordi Boggiano <[email protected]> > > On 08.11.2010 14:27, c6dney c6dney wrote: >> > So I decided to install "DoctrineUserBundle" for the user management, >> > but for no reason, using "doctrine:generate:entities" command: >> > - generates all entities class for my Bundle (1st time) as attended, >> > - but also generates all entities classes for my Bundle (2nd time), and >> > entities classes for DoctrineUserBundle. >> > >> > The thing is, when I try to generate the repositories class I have the >> > error message from the console: >> > " PHP Fatal error: Cannot redeclare >> > Application\MyBundle\Entity\Test::getId() " because the methods are >> > duplicated in all my classes. >> > >> > Does somebody have a idea on why the methods are duplicated? >> >> No idea, but same issue here (if it can make you feel better;), every >> entity is generated for every bundle I have, except they're generated in >> the proper namespace, so every entity has n times the method/properties >> in them. So far I've just been cleaning up the duplicates by hand >> because I never had time to debug the problem. >> >> Cheers >> >> -- >> Jordi Boggiano >> @seldaek :: http://seld.be/ >> >> -- >> 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 developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<symfony-devs%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/symfony-devs?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 developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
