Started work on Address
This commit is contained in:
@@ -100,6 +100,12 @@ class mfBaseModel {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function update(Array $data) {
|
||||
foreach($data as $key => $value) {
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
|
||||
public function save() {
|
||||
if(method_exists($this, "beforeSave")) {
|
||||
$this->beforeSave();
|
||||
|
||||
Reference in New Issue
Block a user