private function hydrateRows($contenttype, $rows, $getTaxoAndRel = true)
    {
        // Make sure content is set, and all content has information about its contenttype
        $objects = [];
        foreach ($rows as $row) {
            $objects[$row['id']] = $this->getContentObject($contenttype, $row);
        }

        if ($getTaxoAndRel) {
            // Make sure all content has their taxonomies and relations
            $this->getTaxonomy($objects);
            $this->getRelation($objects);
            $this->getRepeaters($objects);
        }

        return $objects;
    }
private function hydrateRows($contenttype, $rows, $getTaxoAndRel = true)
    {
        // Make sure content is set, and all content has information about its contenttype
        $objects = [];
        foreach ($rows as $row) {
            $objects[$row['id']] = $this->getContentObject($contenttype, $row);
        }

        if ($getTaxoAndRel) {
            // Make sure all content has their taxonomies and relations
            $this->getTaxonomy($objects);
            $this->getRelation($objects);
            $this->getRepeaters($objects);
        }

        return $objects;
    }
private function hydrateRows ( $ contenttype , $ rows , $ getTaxoAndRel = true ) { // Make sure content is set, and all content has information about its contenttype $ objects = [ ] ; foreach ( $ rows as $ row ) { $ objects [ $ row [ 'id' ] ] = $ this -> getContentObject ( $ contenttype , $ row ) ; } if ( $ getTaxoAndRel ) { // Make sure all content has their taxonomies and relations $ this -> getTaxonomy ( $ objects ) ; $ this -> getRelation ( $ objects ) ; $ this -> getRepeaters ( $ objects ) ; } return $ objects ; }
Hydrate database rows into objects.

@param array|string $contenttype
@param array        $rows
@param boolean      $getTaxoAndRel

@throws \Exception

@return array
Hydrate database rows into objects .