X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/8e2437498f879f79f222119f8afeacf22f640f3d..refs/pull/806/head:/app/Page.php diff --git a/app/Page.php b/app/Page.php index 4a8d32780..38feb610d 100644 --- a/app/Page.php +++ b/app/Page.php @@ -1,13 +1,11 @@ belongsTo(Chapter::class); } - - /** - * Get the comments in the page. - * @return \Illuminate\Database\Eloquent\Relations\HasMany - */ - public function comment() - { - return $this->hasMany(Comment::class); - } /** * Check if this page has a chapter. @@ -110,8 +99,8 @@ class Page extends Entity * @return string */ public function entityRawQuery($withContent = false) - { $htmlQuery = $withContent ? 'html' : "'' as html"; + { + $htmlQuery = $withContent ? 'html' : "'' as html"; return "'BookStack\\\\Page' as entity_type, id, id as entity_id, slug, name, {$this->textField} as text, {$htmlQuery}, book_id, priority, chapter_id, draft, created_by, updated_by, updated_at, created_at"; } - }