/** * @return \yii\db\ActiveQuery */ public function getComments() { return $this->hasOne(Comments::className(), ['id' => 'comments_id']); }