From 8662f123d781a6df4eb5bd05b3556cca94fcf334 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 22 Jul 2021 21:36:42 +0200 Subject: Move repository search functionality into a trait Move the methods for the search functionality of the abstract Repository class into a separate trait and use it in the Page and Post repository. The reason because of this is that only the Page and Post repositories having a search functionality, while the other repositories have not. --- core/namespace/ORM/Repositories/PageRepository.php | 3 +++ core/namespace/ORM/Repositories/PostRepository.php | 3 +++ 2 files changed, 6 insertions(+) (limited to 'core/namespace/ORM/Repositories') diff --git a/core/namespace/ORM/Repositories/PageRepository.php b/core/namespace/ORM/Repositories/PageRepository.php index 8c7c94b..993fb67 100644 --- a/core/namespace/ORM/Repositories/PageRepository.php +++ b/core/namespace/ORM/Repositories/PageRepository.php @@ -1,8 +1,11 @@