OAIDs can be released now

This commit is contained in:
Frank Schubert
2025-05-16 14:54:21 +02:00
parent a3822abfad
commit 0f00c493f1
8 changed files with 95 additions and 30 deletions
+4 -4
View File
@@ -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;
}