aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/ORM/Repositories/PostRepository.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/namespace/ORM/Repositories/PostRepository.php')
-rw-r--r--core/namespace/ORM/Repositories/PostRepository.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/namespace/ORM/Repositories/PostRepository.php b/core/namespace/ORM/Repositories/PostRepository.php
new file mode 100644
index 0000000..400d596
--- /dev/null
+++ b/core/namespace/ORM/Repositories/PostRepository.php
@@ -0,0 +1,8 @@
+<?php
+namespace ORM\Repositories;
+use ORM\Repository;
+
+class PostRepository extends Repository {
+ public static function getTableName(): string { return 'post'; }
+ public static function getClassName(): string { return 'ORM\Entities\Post'; }
+}