Hello all, I got the same problem, i solved it when i changed the Enitity Group to other name because Group is a reserved word of mysql. Or you can just define a different table name for Entity Group with annotations.
Hope it helps, Daniel Gomes m: +351 93 818 57 09 email: daniel.go...@reset.pt <mailto:daniel.go...@reset.pt> web: http://www.reset.pt <http://www.reset.pt/index.html> From: Carl <carl.par...@gmail.com> Reply-To: <symfony-users@googlegroups.com> Date: Fri, 22 Apr 2011 15:37:24 -0700 (PDT) To: <symfony-users@googlegroups.com> Subject: [symfony-users] Re: Symfony2 orm problems with FOSUserBundle I ran into the same problem when trying to use groups with that bundle. I tried a lot of different approaches and it kept incorrectly detecting my schema. I first noticed a problem when I tried to run the doctrine:schema:update command (with --dump-sql) and discovered that it wasn't generating the right queries. So there's definitely an issue with either the documentation or the implementation of groups. When looking at the source code and the service definitions, it didn't look like groups were finished yet. I may be wrong but pieces seemed like they were missing. I'm afraid that I don't have a solution yet. For now I've abandoned using groups and will just be using the event dispatcher (http://symfony.com/doc/2.0/book/internals/event_dispatcher.html) to add/remove roles from users. I'd prefer to use groups since they're conceptually easier to manage but they were just causing me to waste far too much time trying to get them to work at this point. -- 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 -- 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
<<inline: 48AC333F-8DEC-4E9A-ACDC-E1FF6F90B2DB.png>>