[Flow] Query to get all

Patric Eckhart mail at patriceckhart.com
Sat Mar 21 17:07:48 CET 2015


Hey,

I have a function with a query, like the following:

$classname = '\MyCompany\MyProject\Domain\Model\Data';
$query = $this->persistenceManager->createQueryForType($classname);
$csvget = $query->matching($query->equals('object', $object))->execute()->getFirst();
$energiebedarfoel = $csvget->getEnergiebedarfoel();

This works perfect, but only with the first dataset (getFirst()). I have tried this with execute()->findAll(); but it does not work.

I would show all datasets with the object identifier. With getFirst I get only one - the first.

Thank your for your answer.


More information about the Flow mailing list