public function deleteFile()
    {
        if (!$this->getManager()->deleteModel($this->owner->{$this->idAttribute})) {
            throw new CException('Failed to delete file.');
        }
        $this->owner->{$this->idAttribute} = null;
        if (!$this->owner->save(false)) {
            throw new CException('Failed to remove file id from owner.');
        }
    }
public function deleteFile()
    {
        if (!$this->getManager()->deleteModel($this->owner->{$this->idAttribute})) {
            throw new CException('Failed to delete file.');
        }
        $this->owner->{$this->idAttribute} = null;
        if (!$this->owner->save(false)) {
            throw new CException('Failed to remove file id from owner.');
        }
    }
public function deleteFile ( ) { if ( ! $ this -> getManager ( ) -> deleteModel ( $ this -> owner -> { $ this -> idAttribute } ) ) { throw new CException ( 'Failed to delete file.' ) ; } $ this -> owner -> { $ this -> idAttribute } = null ; if ( ! $ this -> owner -> save ( false ) ) { throw new CException ( 'Failed to remove file id from owner.' ) ; } }
Deletes the file associated with the owner.
@throws CException if the file cannot be deleted or if the file id cannot be removed from the owner model.
Deletes the file associated with the owner .