Пример #1
0
 public function getTicketGroups()
 {
     return $this->hasMany(TicketGroup::className(), ['event_id' => 'id']);
 }
Пример #2
0
 public function getGroup()
 {
     return $this->hasOne(TicketGroup::className(), ['id' => 'group_id']);
 }