Compare commits

..

2 Commits

Author SHA1 Message Date
dd855a6d6b
Merge pull request 'fix the case when relation is set to null' (#21) from bugfix/fix-when-relation-is-set-to-null into master
All checks were successful
soko-web/pipeline/head This commit looks good
Reviewed-on: #21
2023-05-28 15:47:27 +02:00
25548176bb
fix the case when relation is set to null
All checks were successful
soko-web/pipeline/pr-master This commit looks good
2023-05-28 15:46:13 +02:00

View File

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