src/Graviton/AnalyticsBundle/Manager/AnalyticsManager.php
private function resolveObject($collection, $id)
    {
        return $this->connection->selectCollection($this->databaseName, $collection)->findOne(['_id' => $id]);
    }
private function resolveObject($collection, $id)
    {
        return $this->connection->selectCollection($this->databaseName, $collection)->findOne(['_id' => $id]);
    }
private function resolveObject ( $ collection , $ id ) { return $ this -> connection -> selectCollection ( $ this -> databaseName , $ collection ) -> findOne ( [ '_id' => $ id ] ) ; }
resolves a dbref array into the actual object

@param string $collection collection name
@param string $id         record id

@return array|null record as array or null
resolves a dbref array into the actual object