aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/Posts/Models/Post.php
diff options
context:
space:
mode:
authorMarvin Borner2018-08-28 16:05:01 +0200
committerMarvin Borner2018-08-28 16:05:01 +0200
commit781438fc4cd54c885e52af22e1dc0ccaaace015e (patch)
tree3cdbf2e2a6df6e0a321084dbc1c3d7370f0eb498 /api/Posts/Models/Post.php
parent113dfd2bc5089c66b7ff5d1ddccbd8c895bdd766 (diff)
Finished api of getting posts
Diffstat (limited to 'api/Posts/Models/Post.php')
-rw-r--r--api/Posts/Models/Post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/Posts/Models/Post.php b/api/Posts/Models/Post.php
index c93fc4f..9da1401 100644
--- a/api/Posts/Models/Post.php
+++ b/api/Posts/Models/Post.php
@@ -26,7 +26,7 @@ class Post extends Model
public function post_type()
{
- return $this->hasOne('Api\Posts\Models\PostType');
+ return $this->belongsTo('Api\Posts\Models\PostType');
}
public function media_post()