protected function beforeValidate($event)
    {
        if ($this->autoSave) {
            $this->owner->{$this->uploadAttribute} = $this->getUploadedFile();
        }
    }
protected function beforeValidate($event)
    {
        if ($this->autoSave) {
            $this->owner->{$this->uploadAttribute} = $this->getUploadedFile();
        }
    }
protected function beforeValidate ( $ event ) { if ( $ this -> autoSave ) { $ this -> owner -> { $ this -> uploadAttribute } = $ this -> getUploadedFile ( ) ; } }
Actions to take before validating the owner of this behavior.
@param CModelEvent $event event parameter.
Actions to take before validating the owner of this behavior .