public function beforeDelete(Model $model, $cascade = true) {
        if (empty($model->id)) {
            return false;
        }

        return $this->deleteFiles($model, $model->id, array(), true);
    }
public function beforeDelete(Model $model, $cascade = true) {
        if (empty($model->id)) {
            return false;
        }

        return $this->deleteFiles($model, $model->id, array(), true);
    }
public function beforeDelete ( Model $ model , $ cascade = true ) { if ( empty ( $ model -> id ) ) { return false ; } return $ this -> deleteFiles ( $ model , $ model -> id , array ( ) , true ) ; }
Deletes any files that have been attached to this model.

@param Model $model
@param bool $cascade
@return bool
Deletes any files that have been attached to this model .