diff --git a/lib/event_category.php b/lib/event_category.php index 52e1fd3..3f9e243 100644 --- a/lib/event_category.php +++ b/lib/event_category.php @@ -27,7 +27,7 @@ public function getUrl(): string return rex_getUrl('', '', ['event-category-id' => $this->getId()]); } - public function getDateWhere($whereRaw = ''): object + public function getDateWhere($whereRaw = ''): ?rex_yform_manager_collection { return event_date::query()->joinRelation('event_category_id', 'c')->where('c.id', $this->getId())->whereRaw($whereRaw)->orderBy('startDate`, `startTime', 'DESC')->find(); }