saveEmbeddedForms

Discussion relating to version 1.3.x and 1.4.x

saveEmbeddedForms

Postby vibby » Mon Feb 13, 2012 8:20 pm

Maybe I'm not very good at OOP, but the function of a child should replace the parent's one, isn't it ?
So why this form save the password on the embededForm ?
(I precise that the password is not included in the "sfGuardUserInfosForm" form.)

Code: Select all
class sfGuardMyInfosForm extends sfGuardUserInfosForm
{

  public function configure()
  {
    parent::configure();

    $myPwdForm = new sfGuardChangeLoggedUserPasswordForm($this->getObject());
    $this->embedForm('pwd', $myPwdForm);
  }
 
  public function saveEmbeddedForms($con = null, $forms = null)
  {
    return true;
  }
 
}

vibby
Junior Member
 
Posts: 10
Joined: Mon Feb 13, 2012 8:10 pm

Re: saveEmbeddedForms

Postby vibby » Tue Feb 14, 2012 5:11 pm

Finaly, I used merging instead of embeding forms, taht seems to handle all data at once if embedded form's objetc is the same than the first one ...
vibby
Junior Member
 
Posts: 10
Joined: Mon Feb 13, 2012 8:10 pm


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 8 guests