From 10ab5332cd4e243b87ac32bc9c143022fc76aacc Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 11 Nov 2024 10:11:22 +0200 Subject: [PATCH] deprecate preferences repo get --- application/Espo/Repositories/Preferences.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/Espo/Repositories/Preferences.php b/application/Espo/Repositories/Preferences.php index ba00db719f..603cc79e5d 100644 --- a/application/Espo/Repositories/Preferences.php +++ b/application/Espo/Repositories/Preferences.php @@ -111,6 +111,10 @@ class Preferences implements Repository, return $entity; } + /** + * @deprecated Use `getById`. + * @todo Remove in v10.0. + */ public function get(?string $id = null): ?Entity { if ($id === null) { @@ -314,7 +318,7 @@ class Preferences implements Repository, unset($this->data[$userId]); } - $entity = $this->get($userId); + $entity = $this->getById($userId); if ($entity) { return $entity->getValueMap();