/** * @return \yii\db\ActiveQuery */ public function getAppcomments() { return $this->hasMany(Appcomments::className(), ['appid' => 'id']); }