public function getEventsData() { return $this->hasMany(Event::className(), ['id' => 'id_event'])->via('absensis'); }
/** * @return \yii\db\ActiveQuery */ public function getEvents() { return $this->hasMany(Event::className(), ['id_client' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getEvent() { return $this->hasOne(Event::className(), ['id' => 'event_id']); }
public function getEvent() { return $this->hasMany(Event::className(), ['roomid' => 'roomid']); }
/** * @return \yii\db\ActiveQuery */ public function getEvents() { return $this->hasMany(Event::className(), ['author_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getIdEvent() { return $this->hasOne(Event::className(), ['id' => 'id_event']); }
public static function getEvents() { return $this->hasMany(Event::className(), ['location_id', 'id']); }