public function delete($model) {
        if ($model) {
            if (!is_array($model)) {
                $model = array($model);
            }
            return parent::delete($model);
        }
        else {
            return parent::delete();
        }
        return $this;
    }
public function delete($model) {
        if ($model) {
            if (!is_array($model)) {
                $model = array($model);
            }
            return parent::delete($model);
        }
        else {
            return parent::delete();
        }
        return $this;
    }
public function delete ( $ model ) { if ( $ model ) { if ( ! is_array ( $ model ) ) { $ model = array ( $ model ) ; } return parent :: delete ( $ model ) ; } else { return parent :: delete ( ) ; } return $ this ; }
Deletes data from the database
@param array|Mapper $model a model or an array of models to delete
@return Repository
Deletes data from the database