public function lastInsertId($name)
    {
        // check if a valid name and sequence exists
        if (! $name || ! $this->exists($name)) {
            return 0;
        }

        return $this->connection->selectOne("select {$name}.currval as id from dual")->id;
    }
public function lastInsertId($name)
    {
        // check if a valid name and sequence exists
        if (! $name || ! $this->exists($name)) {
            return 0;
        }

        return $this->connection->selectOne("select {$name}.currval as id from dual")->id;
    }
public function lastInsertId ( $ name ) { // check if a valid name and sequence exists if ( ! $ name || ! $ this -> exists ( $ name ) ) { return 0 ; } return $ this -> connection -> selectOne ( "select {$name}.currval as id from dual" ) -> id ; }
function to get oracle sequence last inserted id.

@param  string $name
@return int
function to get oracle sequence last inserted id .