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);