public function update($model, $whereProperty = 'id') {
        if (!is_array($model)) {
            $model = array($model);
        }

        return parent::update($model, $whereProperty);
    }
public function update($model, $whereProperty = 'id') {
        if (!is_array($model)) {
            $model = array($model);
        }

        return parent::update($model, $whereProperty);
    }
public function update ( $ model , $ whereProperty = 'id' ) { if ( ! is_array ( $ model ) ) { $ model = array ( $ model ) ; } return parent :: update ( $ model , $ whereProperty ) ; }
Updates the database with the model properties
@param array|Mapper $model a model or an array of models to insert
@param string $whereProperty Property to use as the criterion for the update. Default is "id"
@return Repository
Updates the database with the model properties