Merge branch 'fronkdev' into 'master'

OAIDs can be released now

See merge request fronk/thetool!1348
This commit is contained in:
Frank Schubert
2025-05-16 12:54:50 +00:00
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;
}