OAIDs can be released now
This commit is contained in:
@@ -148,9 +148,9 @@ class mfBaseModel {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function save() {
|
||||
public function save($_params = []) {
|
||||
if(method_exists($this, "beforeSave")) {
|
||||
$this->beforeSave();
|
||||
$this->beforeSave($_params);
|
||||
}
|
||||
$fields = $this->buildFields();
|
||||
|
||||
@@ -179,7 +179,7 @@ class mfBaseModel {
|
||||
if($this->db->update($this->table, $fields, $where, $forcestr)) {
|
||||
$this->saved++;
|
||||
if(method_exists($this, "afterSave")) {
|
||||
$this->afterSave();
|
||||
$this->afterSave($_params);
|
||||
}
|
||||
return $id;
|
||||
}
|
||||
@@ -189,7 +189,7 @@ class mfBaseModel {
|
||||
$this->id = $id;
|
||||
$this->saved++;
|
||||
if(method_exists($this, "afterSave")) {
|
||||
$this->afterSave();
|
||||
$this->afterSave($_params);
|
||||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user