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

This commit is contained in:
Bence Pőcze 2023-05-28 12:19:57 +02:00
parent 78f891fbff
commit 126720814e
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

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