Beispiel #1
0
 public function getEventsCount()
 {
     return $this->hasMany(EventsRecord::className(), ['categoryId' => 'id'])->lang()->count();
 }