GraphAware\Neo4j\OGM\Finder\RelationshipsFinder::hydrateResult PHP Method

hydrateResult() protected method

protected hydrateResult ( GraphAware\Common\Result\Result $result )
$result GraphAware\Common\Result\Result
    protected function hydrateResult(Result $result)
    {
        $repo = $this->em->getRepository($this->className);
        $instances = [];
        foreach ($result->records() as $record) {
            $instances[] = $repo->hydrate($record, true, 'end', $this->className, true, true);
        }
        return $instances;
    }