From f7dcf9dd638f0552421012acbbb4d413ab236960 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:53:07 +0100 Subject: [PATCH] Update event_registration_person.php --- lib/event_registration_person.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/event_registration_person.php b/lib/event_registration_person.php index 567215e..eb7ac75 100644 --- a/lib/event_registration_person.php +++ b/lib/event_registration_person.php @@ -59,7 +59,7 @@ public function getRegistrationId(): int return $this->getValue('registration_id'); } - public function getRegistration(): object + public function getRegistration(): ?rex_yform_manager_collection { return $this->getRelatedDataset('registration_id'); } @@ -74,14 +74,14 @@ public function getHash(): string return $this->getValue('hash'); } - public static function getByUuid($uuid = null): object + public static function getByUuid($uuid = null): ?rex_yform_manager_collection { if (!$uuid) { return; } return self::query()->where('uuid', $uuid)->findOne(); } - public static function getByHash($hash = null): object + public static function getByHash($hash = null): ?rex_yform_manager_collection { if (!$hash) { return;