From c87f96ebcf7b97e8c8a5791233d912df5e8aaab0 Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Fri, 9 Jan 2026 13:22:59 +0100 Subject: [PATCH] Add `update` method as alias for `set` in `object_property` class --- services/nginx/app/classes/object_property.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/nginx/app/classes/object_property.php b/services/nginx/app/classes/object_property.php index f48ef872..6c974fed 100644 --- a/services/nginx/app/classes/object_property.php +++ b/services/nginx/app/classes/object_property.php @@ -100,6 +100,15 @@ class object_property $db->query($sql); } + /** + * Alias for set() + * @param mixed $value The value of the field in the database table + */ + public function update(mixed $value): void + { + $this->set($value); + } + /** * Nullify the value of the field in the database table */