/** * @return null|PostCommentModel[] */ public function getComments() { if (is_null($this->comments)) { $this->comments = PostCommentModel::getComments($this); $this->comment_count = count($this->comments); } return $this->comments; }