This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » sfDoctrineGuard: update a sfGuardUser via Form results in Integrity constraint violation
sfDoctrineGuard: update a sfGuardUser via Form results in Integrity constraint violation [message #97929] Fri, 23 April 2010 09:13 Go to next message
dArignac  is currently offline dArignac
Messages: 4
Registered: November 2008
Junior Member
Howdy!

I'm using the sfDoctrineGuard plugin in Symfony 1.2

I have several sfGuardUser belonging to different groups. I'm logged into my app as a super admin. I created a form according to the jobeet tutorial, adjusted the routes aso. User creation works, but updating fails. The problem is, that the $form->save() call creates a sql query that is invalid:

UPDATE sf_guard_user SET username = 'test21233344', id = '27', updated_at = '2010-04-23 09:11:08' WHERE  id = '18'


My super admin user has the id 18 and I'm trying to update the user with the id 27. Why does it generate this the way it is?


Thanks in advance, Alex
Re: sfDoctrineGuard: update a sfGuardUser via Form results in Integrity constraint violation [message #98244 is a reply to message #97929 ] Thu, 29 April 2010 08:21 Go to previous message
dArignac  is currently offline dArignac
Messages: 4
Registered: November 2008
Junior Member
Well, I used the admin generator now. Problem solved.
Previous Topic:sfDoctrineGuardPlugin and WebServices SOAP
Next Topic:sfForkedDoctrineApply extending schema problem
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software