diff options
Diffstat (limited to 'api/Posts/Models/Post.php')
-rw-r--r-- | api/Posts/Models/Post.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/Posts/Models/Post.php b/api/Posts/Models/Post.php index 9da1401..b907808 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->belongsTo('Api\Posts\Models\PostType'); + return $this->belongsTo('Api\Posts\Models\PostType', 'post_types_id', 'id'); } public function media_post() |