[Flow] Query to get all

Rémy DANIEL dogawaf at no-log.org
Mon Mar 23 21:20:37 CET 2015


Hi Patrick

You should call ->current(), not ->currenc()

Cheers

--
Rémy

2015-03-23 19:58 GMT+01:00 Patric Eckhart <mail at patriceckhart.com>:

> I have tried this, but the result is a blank page.
> When I remove the While Loop and add a ->getFirst() behind the execute()
> it works, but only with one dataset.
>
> public function exportAction(\MyProject\Portal\Domain\Model\Object
> $object) {
>
>        $classname = '\MyProject\Portal\Domain\Model\Data';
>        $query = $this->createQueryForType($classname);
>        $query->matching($query->contains('object', $object));
>        $ergebnis = $query->execute();
>
>        while($result = $ergebnis->currenc()){
>            $energiebedarfoel = $result->getEnergiebedarfoel();
>        }
>
>        $this->view->assign('results', $energiebedarfoel);
>
>
> }
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>


More information about the Flow mailing list