aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/ORM/Repositories
diff options
context:
space:
mode:
Diffstat (limited to 'core/namespace/ORM/Repositories')
-rw-r--r--core/namespace/ORM/Repositories/PageRepository.php3
-rw-r--r--core/namespace/ORM/Repositories/PostRepository.php3
2 files changed, 6 insertions, 0 deletions
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 @@
<?php
namespace ORM\Repositories;
use ORM\Repository;
+use ORM\RepositorySearch;
class PageRepository extends Repository {
+ use RepositorySearch;
+
public static function getTableName(): string { return 'page'; }
public static function getClassName(): string { return 'ORM\Entities\Page'; }
}
diff --git a/core/namespace/ORM/Repositories/PostRepository.php b/core/namespace/ORM/Repositories/PostRepository.php
index 400d596..24ab47f 100644
--- a/core/namespace/ORM/Repositories/PostRepository.php
+++ b/core/namespace/ORM/Repositories/PostRepository.php
@@ -1,8 +1,11 @@
<?php
namespace ORM\Repositories;
use ORM\Repository;
+use ORM\RepositorySearch;
class PostRepository extends Repository {
+ use RepositorySearch;
+
public static function getTableName(): string { return 'post'; }
public static function getClassName(): string { return 'ORM\Entities\Post'; }
}