Skip to content

Commit

Permalink
Update loadArticles function in example
Browse files Browse the repository at this point in the history
  • Loading branch information
flytomek committed Jan 8, 2024
1 parent c3e02eb commit 9ca8a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/doc/overview-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ class ArticleOverviewController extends WebsiteController
$search = $repository->createSearch()
->addSort(new FieldSort('authored', FieldSort::DESC))
->setFrom(($page - 1) * $pageSize)
->setSize($pageSize);
->setSize($pageSize)
->addQuery(new TermQuery('locale', $locale));

return $repository->findDocuments($search);
}
Expand Down

0 comments on commit 9ca8a10

Please sign in to comment.