public function getDBRef(array $ref)
    {
        $db = (isset($ref['$db']) && $ref['$db'] !== $this->name) ? $this->connection->selectDB($ref['$db']) : $this;
        return MongoDBRef::get($db, $ref);
    }
public function getDBRef(array $ref)
    {
        $db = (isset($ref['$db']) && $ref['$db'] !== $this->name) ? $this->connection->selectDB($ref['$db']) : $this;
        return MongoDBRef::get($db, $ref);
    }
public function getDBRef ( array $ ref ) { $ db = ( isset ( $ ref [ '$db' ] ) && $ ref [ '$db' ] !== $ this -> name ) ? $ this -> connection -> selectDB ( $ ref [ '$db' ] ) : $ this ; return MongoDBRef :: get ( $ db , $ ref ) ; }
Fetches the document pointed to by a database reference

@link http://www.php.net/manual/en/mongodb.getdbref.php
@param array $ref A database reference.
@return array Returns the document pointed to by the reference.
Fetches the document pointed to by a database reference