diff options
Diffstat (limited to 'Zotlabs/Entity/Registration.php')
-rw-r--r-- | Zotlabs/Entity/Registration.php | 9 |
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. * |