fix the case when relation is set to null #21
@ -302,6 +302,8 @@ class PersistentDataManager implements IPersistentDataManager
|
||||
|
||||
if ($relationModel !== null) {
|
||||
$model->$methodSet($relationModel->getId());
|
||||
} else {
|
||||
$model->$methodSet(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user