public function update($SQL, $parameters = null) {
        $queryResult = $this->executeSQL($SQL, $parameters);
        return $queryResult->rowCount();
    }
public function update($SQL, $parameters = null) {
        $queryResult = $this->executeSQL($SQL, $parameters);
        return $queryResult->rowCount();
    }
public function update ( $ SQL , $ parameters = null ) { $ queryResult = $ this -> executeSQL ( $ SQL , $ parameters ) ; return $ queryResult -> rowCount ( ) ; }
Do a update query to Database and return the number of updated rows

@param string $SQL
@return int number of update rows.
@throws ModelException
Do a update query to Database and return the number of updated rows