CodeExplorer addPostFilters example
$result->
addState(self::RESULT_STATE
);
return $result;
} private function createSearch(Criteria
$criteria, EntityDefinition
$definition, Context
$context): Search
{ $search =
new Search();
$this->helper->
handleIds($definition,
$criteria,
$search,
$context);
$this->helper->
addFilters($definition,
$criteria,
$search,
$context);
$this->helper->
addPostFilters($definition,
$criteria,
$search,
$context);
$this->helper->
addQueries($definition,
$criteria,
$search,
$context);
$this->helper->
addSortings($definition,
$criteria,
$search,
$context);
$this->helper->
addTerm($criteria,
$search,
$context,
$definition);
$search->
setSize(self::MAX_LIMIT
);
$limit =
$criteria->
getLimit();
if ($limit !== null
) { $search->
setSize($limit);
} $search->
setFrom((int) $criteria->
getOffset());