[TYPO3-dev] Remove records from extbase query result
Philipp
philippwrann at gmx.at
Tue Jan 14 08:50:39 CET 2014
Your requested domain object of course would have to implement the coords interface too, so the call would actually look somehow like this
$query->includeTransientProperty('distance',$query->calculate('Vendor\\Extension\\Persistence\\Generic\\QOM\\Calculation\\Haversine',$coords));
$query->setOrderings(array('distance',\TYPO3\CMS\Extbase\Persisrtence\QueryInterface::ORDERING_ASCENDING));
//additionally
$query->matching($query->lowerThanOrEqual('distance',$maxdistance));
return $query->execute();
Now including the distance property in the mapped object
Something like that would be nice!
More information about the TYPO3-dev
mailing list