Example #1
0
 public function getEventsData()
 {
     return $this->hasMany(Event::className(), ['id' => 'id_event'])->via('absensis');
 }
Example #2
0
 /**
  * @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']);
 }
Example #4
0
 public function getEvent()
 {
     return $this->hasMany(Event::className(), ['roomid' => 'roomid']);
 }
Example #5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEvents()
 {
     return $this->hasMany(Event::className(), ['author_id' => 'id']);
 }
Example #6
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdEvent()
 {
     return $this->hasOne(Event::className(), ['id' => 'id_event']);
 }
Example #7
0
 public static function getEvents()
 {
     return $this->hasMany(Event::className(), ['location_id', 'id']);
 }