diff --git a/src/PersistentData/PersistentDataManager.php b/src/PersistentData/PersistentDataManager.php index 4bc99d3..f35add7 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); } } }