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
All checks were successful
soko-web/pipeline/head This commit looks good
Reviewed-on: #21
This commit is contained in:
commit
dd855a6d6b
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user