/** * @return \yii\db\ActiveQuery */ public function getEvent0() { return $this->hasOne(Events::className(), ['id' => 'event']); }
/** * @return \yii\db\ActiveQuery */ public function getEvents() { return $this->hasMany(Events::className(), ['id_user' => 'id']); }