$paginator = $this->getModelManager()->createPaginator($query); // Returns the total count of the query
$totalResult = $paginator->count(); $shippingCosts = iterator_to_array($paginator); $shippingCosts = $this->convertShippingCostsDates($shippingCosts);
/**
* Helper function which formats the Ext JS search value
* to a valid doctrine field value for the passed field.
* This function is used to supports different date search strings
* like the german and english date format.
* Additionally this function adds the sql wildcards at the right points of
* the search value.
*
* @param string $value
* @param array{alias?: string, type: string|null} $field
* @param string|null $expression
*
* @return string
*/