orderByMaxValue(); return $query; } public function parseResults(LoopResult $loopResult) { /** @var MondialRelayDeliveryInsurance $item */ foreach ($loopResult->getResultDataCollection() as $item) { $loopResultRow = new LoopResultRow($item); $loopResultRow ->set('ID', $item->getId()) ->set('MAX_VALUE', $item->getMaxValue()) ->set('PRICE', $item->getPriceWithTax()) ; $loopResult->addRow($loopResultRow); } return $loopResult; } }