Added parent id to address
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user