From 1de9eac01235de375c4c9301f36a50f1607da8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20G=C3=B6tz?= <20090597+schorschy@users.noreply.github.com> Date: Fri, 24 Nov 2023 11:51:09 +0100 Subject: [PATCH] Update event_category.php --- lib/event_category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }