fix the case when relation is set to null
soko-web/pipeline/pr-master This commit looks good

This commit is contained in:
bence authored and bence committed 2023-05-28 15:46:13 +02:00
1 parent f31b801c03
commit 25548176bb
1 file changed
+2
@@ -302,6 +302,8 @@ class PersistentDataManager implements IPersistentDataManager
if ($relationModel !== null) { if ($relationModel !== null) {
$model->$methodSet($relationModel->getId()); $model->$methodSet($relationModel->getId());
} else {
$model->$methodSet(null);
} }
} }
} }