thx but setNew(FALSE) won't solve my problem, because I want to create new users, not just update them
maybe if somebody show me how did he create his registration .... I spent so much time solving this problem .... On Aug 26, 12:06 am, "Jim Barcelona" <[EMAIL PROTECTED]> wrote: > You can try something like this: > $sfGuardUser->setNew(FALSE); > > That tells symfony just to update the user, and you should do the same for > sfGuardUserProfile. > > If you're looking for something pretty thorough, check out my blog on > installing the sfGuardAuthPlugin for symfony 1.1 here for some > clues:http://www.codebelay.com/blog/?p=116 > > Cheers, > Barce > > On Mon, Aug 25, 2008 at 5:11 AM, javo <[EMAIL PROTECTED]> wrote: > > > I'm sorry but can somebody show me how to do that?, I'd like to see > > some code example for a start, I'm trying to write that, but I'm > > newbie to symfony > > > On Aug 25, 10:49 am, Lee Bolding <[EMAIL PROTECTED]> wrote: > > > On 25 Aug 2008, at 09:02, javo wrote: > > > > > public function executeUpdate($request) > > > > { > > > > $this->forward404Unless($request->isMethod('post')); > > > > $this->form = new > > > > SfGuardUserProfileForm(SfGuardUserProfilePeer::retrieveByPk($request- > > > >> getParameter('id'))); > > > > $this->form->bind($request- > > > >> getParameter('sf_guard_user_profile')); > > > > if ($this->form->isValid()) > > > > { > > > > > $this->user_acc = new sfGuardUser(); > > > > $this->user = new SfGuardUserProfile(); > > > > You've just retrieved the object by PK, why are you creating new > > > ones????? > > > What you probably want to do is test if the request has the ID param, > > > and if it does, retrieve by PK, if not THEN create new objects. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---