From 45c4206686a03d4e0cdd40d0a37c30622d38792b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 7 May 2023 01:16:35 +0200 Subject: [PATCH] fixup! handle slugs in persistent data manager --- src/Interfaces/PersistentData/IPersistentDataManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Interfaces/PersistentData/IPersistentDataManager.php b/src/Interfaces/PersistentData/IPersistentDataManager.php index 7978fc7..6cdf496 100644 --- a/src/Interfaces/PersistentData/IPersistentDataManager.php +++ b/src/Interfaces/PersistentData/IPersistentDataManager.php @@ -12,6 +12,8 @@ interface IPersistentDataManager public function selectFromDbById($id, string $type, bool $useRelations = false, array $withRelations = []); + public function selectFromDbBySlug(string $slug, string $type, bool $useRelations = false, array $withRelations = []); + public function loadRelationsFromDb(Model $model, bool $recursive = false, array $withRelations = []): void; public function saveToDb(Model $model): void;