protected function buildEmbeddedRelationships(array $results) : array
    {
        $entityMap = $this->entityMap;
        $instance = $this->mapper->newInstance();
        $embeddeds = $entityMap->getEmbeddedRelationships();

        foreach ($embeddeds as $embedded) {
            $results = $entityMap->$embedded($instance)->match($results, $embedded);
        }

        return $results;
    }
protected function buildEmbeddedRelationships(array $results) : array
    {
        $entityMap = $this->entityMap;
        $instance = $this->mapper->newInstance();
        $embeddeds = $entityMap->getEmbeddedRelationships();

        foreach ($embeddeds as $embedded) {
            $results = $entityMap->$embedded($instance)->match($results, $embedded);
        }

        return $results;
    }
protected function buildEmbeddedRelationships ( array $ results ) : array { $ entityMap = $ this -> entityMap ; $ instance = $ this -> mapper -> newInstance ( ) ; $ embeddeds = $ entityMap -> getEmbeddedRelationships ( ) ; foreach ( $ embeddeds as $ embedded ) { $ results = $ entityMap -> $ embedded ( $ instance ) -> match ( $ results , $ embedded ) ; } return $ results ; }
Build embedded objects and match them to the result set.

@param array $results

@return array
Build embedded objects and match them to the result set .