aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Entity/Registration.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Entity/Registration.php b/Zotlabs/Entity/Registration.php
index 8f3c87350..e79d0ab5f 100644
--- a/Zotlabs/Entity/Registration.php
+++ b/Zotlabs/Entity/Registration.php
@@ -119,6 +119,15 @@ class Registration
return null;
}
+ public static function get(int $id): ?self
+ {
+ return static::by_query([
+ 'where' => [
+ 'reg_id' => $id,
+ ]
+ ]);
+ }
+
/**
* Find a registration by it's hash.
*