The paginator right now doesn't send $options to any finder, custom or otherwise. This change allows setting 'finderOptions' directly from the controller's paginate array.
@@ -164,7 +164,7 @@ class PaginatorComponent extends Component {
unset($options['finder'], $options['maxLimit']);
if (empty($query)) {
- $query = $object->find($type);
+ $query = $object->find($type, isset($options['finderOptions']) ? $options['finderOptions'] : []);
}
$query->applyOptions($options);