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