CodeExplorer setIncludes example
if ($criteria->
getLimit() === null &&
$maxLimit !== null
) { $criteria->
setLimit($maxLimit);
} if (isset($payload['page'
])) { $this->
setPage($payload,
$criteria,
$searchException);
} } if (isset($payload['includes'
])) { $criteria->
setIncludes($payload['includes'
]);
} if (isset($payload['filter'
])) { $this->
addFilter($definition,
$payload,
$criteria,
$searchException);
} if (isset($payload['grouping'
])) { foreach ($payload['grouping'
] as $groupField) { $criteria->
addGroupField(new FieldGrouping($groupField));
} }