[Flow] Query to get all

Patric Eckhart mail at patriceckhart.com
Tue Mar 24 21:03:42 CET 2015


Thank you Rémy,
it works but this give me only the last dataset.

$classname = '\MyProject\Portal\Domain\Model\Data';
        $query = $this->persistenceManager->createQueryForType($classname);
        $results = $query->matching($query->equals('object', $object))->execute();

        while($result = $results->current()){
            $energiebedarfoel = $result->getEnergiebedarfoel();
            $results->next();
        }

        $this->view->assign('results', $energiebedarfoel);


More information about the Flow mailing list