common/forms/EditProfileForm.php
/**
     * Signs user up.
     *
     * @return User|null the saved model or null if saving fails
     */
Signs user up.
@return User|null the saved model or null if saving fails
Signs user up . @return User|null the saved model or null if saving fails
public function save()
    {
        if (!$this->validate()) {
            return null;
        }
        $user = $this->getUser();
        $user->name = $this->name;
        $user->phone = $this->phone;
        $user->gender = $this->gender;
        $user->address = $this->address;
        $user->year_of_birth = $this->year_of_birth;
        $result = $user->save() ? $user : null;
        return $result;
    }
public function save ( ) { if ( ! $ this -> validate ( ) ) { return null ; } $ user = $ this -> getUser ( ) ; $ user -> name = $ this -> name ; $ user -> phone = $ this -> phone ; $ user -> gender = $ this -> gender ; $ user -> address = $ this -> address ; $ user -> year_of_birth = $ this -> year_of_birth ; $ result = $ user -> save ( ) ? $ user : null ; return $ result ; }
Signs user up.
Signs user up .