/** * @return \yii\db\ActiveQuery */ public function getApp() { return $this->hasOne(App::className(), ['id' => 'appid']); }
public function getApp() { return $this->hasOne(App::className(), ['id' => 'aid'])->asArray(); }