From f73d50cc3080fe7bc1a4965e3dd482d22cbb54ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 7 May 2023 01:17:45 +0200 Subject: [PATCH] [debug] --- src/PersistentData/Model/ModelWithSlug.php | 2 ++ src/PersistentData/PersistentDataManager.php | 1 + 2 files changed, 3 insertions(+) diff --git a/src/PersistentData/Model/ModelWithSlug.php b/src/PersistentData/Model/ModelWithSlug.php index 2d69ebb..02b9c5e 100644 --- a/src/PersistentData/Model/ModelWithSlug.php +++ b/src/PersistentData/Model/ModelWithSlug.php @@ -22,6 +22,8 @@ abstract class ModelWithSlug extends Model { if ($this->slug === null) { $this->slug = $this->generateSlug(); + var_dump('getSlug called'); + var_dump($this->slug); } return $this->slug; diff --git a/src/PersistentData/PersistentDataManager.php b/src/PersistentData/PersistentDataManager.php index 60fec89..19ac3fb 100644 --- a/src/PersistentData/PersistentDataManager.php +++ b/src/PersistentData/PersistentDataManager.php @@ -97,6 +97,7 @@ class PersistentDataManager implements IPersistentDataManager $this->syncRelations($model); $modified = $model->toArray(); + var_dump($modified); $id = $model->getId(); $modify = new Modify($this->dbConnection, $model::getTable(), $this->auditLogger);