Added parent id to address

This commit is contained in:
Frank Schubert
2021-06-17 21:45:53 +02:00
parent 190747449b
commit d4fc9f3f35
4 changed files with 27 additions and 8 deletions

View File

@@ -102,7 +102,11 @@ class mfBaseModel {
public function update(Array $data) {
foreach($data as $key => $value) {
$this->$key = $value;
if($value === null) {
$this->$key = null;
} else {
$this->$key = $value;
}
}
}