formats the update timestamps in php, differently tracks which properties and informations where changed by the user

This commit is contained in:
Simon Gschnell
2024-01-04 16:06:47 +01:00
parent d412c1d00e
commit ee8051915e
7 changed files with 104 additions and 43 deletions
@@ -12,8 +12,6 @@ class Profil_change_model extends DB_Model
$this->pk = ['uid'];
$this->hasSequence = false;
//? loading other models to query them
$this->load->model('crm/prestudentstatus_model', 'PrestudentstatusModel');
}
/**
@@ -22,7 +20,7 @@ class Profil_change_model extends DB_Model
public function getTimestamp($uid){
$this->addSelect(['change_timestamp']);
$res = $this->load([$uid]);
return hasData($res) ? getData($res)[0] : null;
return hasData($res) ? getData($res)[0]->change_timestamp : null;
}
}