src/Forms/ConfirmedPasswordField.php
public function setName($name)
    {
        $this->getPasswordField()->setName($name . '[_Password]');
        $this->getConfirmPasswordField()->setName($name . '[_ConfirmPassword]');
        if ($this->hiddenField) {
            $this->hiddenField->setName($name . '[_PasswordFieldVisible]');
        }

        parent::setName($name);
        return $this;
    }
public function setName($name)
    {
        $this->getPasswordField()->setName($name . '[_Password]');
        $this->getConfirmPasswordField()->setName($name . '[_ConfirmPassword]');
        if ($this->hiddenField) {
            $this->hiddenField->setName($name . '[_PasswordFieldVisible]');
        }

        parent::setName($name);
        return $this;
    }
public function setName ( $ name ) { $ this -> getPasswordField ( ) -> setName ( $ name . '[_Password]' ) ; $ this -> getConfirmPasswordField ( ) -> setName ( $ name . '[_ConfirmPassword]' ) ; if ( $ this -> hiddenField ) { $ this -> hiddenField -> setName ( $ name . '[_PasswordFieldVisible]' ) ; } parent :: setName ( $ name ) ; return $ this ; }
Update the names of the child fields when updating name of field.

@param string $name new name to give to the field.
@return $this
Update the names of the child fields when updating name of field .