aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2025-02-15 21:45:59 +0100
committerHarald Eilertsen <haraldei@anduin.net>2025-06-29 13:28:23 +0200
commit9884bb7f1d0a2e65b32f517b55550a3123f3e2c3 (patch)
tree85217f25a14f82bf95bb5786b5e4d5b900368727 /Zotlabs
parenta17601643b1e9f5f6505487ca5e761f1e6073656 (diff)
downloadvolse-hubzilla-add-registration-entity-class.tar.gz
volse-hubzilla-add-registration-entity-class.tar.bz2
volse-hubzilla-add-registration-entity-class.zip
Add Registration::get methodadd-registration-entity-class
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.
*