protected function load(Rid $rid, $fetchPlan = null)
    {
        $results = $this->getHydrator()->load(array($rid->getValue()), $fetchPlan);

        if (isset($results) && count($results)) {
            $record = is_array($results) ? array_shift($results) : $results;
            $results = $this->getHydrator()->hydrate($record);

            return $results;
        }

        return null;
    }
protected function load(Rid $rid, $fetchPlan = null)
    {
        $results = $this->getHydrator()->load(array($rid->getValue()), $fetchPlan);

        if (isset($results) && count($results)) {
            $record = is_array($results) ? array_shift($results) : $results;
            $results = $this->getHydrator()->hydrate($record);

            return $results;
        }

        return null;
    }
protected function load ( Rid $ rid , $ fetchPlan = null ) { $ results = $ this -> getHydrator ( ) -> load ( array ( $ rid -> getValue ( ) ) , $ fetchPlan ) ; if ( isset ( $ results ) && count ( $ results ) ) { $ record = is_array ( $ results ) ? array_shift ( $ results ) : $ results ; $ results = $ this -> getHydrator ( ) -> hydrate ( $ record ) ; return $ results ; } return null ; }
Executes a query against OrientDB to find the specified RID and finalizes the
hydration result.

Optionally the query can be executed using the specified fetch plan.

@param  Rid   $rid
@param  mixed $fetchPlan
@return object|null
Executes a query against OrientDB to find the specified RID and finalizes the hydration result .