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

Reply via email to