/** * @return \yii\db\ActiveQuery */ public function getEvent() { return $this->hasOne(Event::className(), ['id' => 'event_id']); }
/** * @return \yii\db\ActiveQuery */ public function getEvents() { return $this->hasMany(Event::className(), ['employee_employee_id' => 'employee_id']); }