public function beforeSave($insert) { if (!parent::beforeSave($insert)) { return false; } $this->comment = PostService::contentComment($this->comment, $this); return true; }