diff --git a/src/PersistentData/PersistentDataManager.php b/src/PersistentData/PersistentDataManager.php index e3096d2..2a3010e 100644 --- a/src/PersistentData/PersistentDataManager.php +++ b/src/PersistentData/PersistentDataManager.php @@ -302,6 +302,8 @@ class PersistentDataManager implements IPersistentDataManager if ($relationModel !== null) { $model->$methodSet($relationModel->getId()); + } else { + $model->$methodSet(null); } } }