public function hydrateCollection(array $collection)
    {
        $records = array();

        foreach ($collection as $key => $record) {
            if ($record instanceof \stdClass) {
                $records[$key] = $this->hydrate($record);
            } else {
                $records[$key] = $this->hydrateRid(new Rid($record));
            }
        }

        return new ArrayCollection($records);
    }
public function hydrateCollection(array $collection)
    {
        $records = array();

        foreach ($collection as $key => $record) {
            if ($record instanceof \stdClass) {
                $records[$key] = $this->hydrate($record);
            } else {
                $records[$key] = $this->hydrateRid(new Rid($record));
            }
        }

        return new ArrayCollection($records);
    }
public function hydrateCollection ( array $ collection ) { $ records = array ( ) ; foreach ( $ collection as $ key => $ record ) { if ( $ record instanceof \ stdClass ) { $ records [ $ key ] = $ this -> hydrate ( $ record ) ; } else { $ records [ $ key ] = $ this -> hydrateRid ( new Rid ( $ record ) ) ; } } return new ArrayCollection ( $ records ) ; }
Hydrates an array of documents.

@param  Array $json
@return ArrayCollection
Hydrates an array of documents .