public function insert($SQL, $parameters = null) {
        $this->executeSQL($SQL, $parameters);
        return $this->connection->lastInsertId();
    }
public function insert($SQL, $parameters = null) {
        $this->executeSQL($SQL, $parameters);
        return $this->connection->lastInsertId();
    }
public function insert ( $ SQL , $ parameters = null ) { $ this -> executeSQL ( $ SQL , $ parameters ) ; return $ this -> connection -> lastInsertId ( ) ; }
Do a insert query to Database and return the id of the row inserted.

@param string $SQL
@return int id of inserted row.
@throws ModelException
Do a insert query to Database and return the id of the row inserted .