fixup! implement audit logger

This commit is contained in:
Bence Pőcze 2023-04-17 02:21:19 +02:00
parent ab3e52dc3b
commit 19baea31c2
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -105,7 +105,7 @@ class Modify
$stmt->execute([$this->idName => $this->attributes[$this->idName]]);
if ($this->auditLogger !== null) {
$this->auditLogger->logDelete($this->attributes[$this->idName], $this->attributes);
$this->auditLogger->logDelete($this->table, $this->attributes[$this->idName], $this->attributes);
}
}
@ -129,7 +129,7 @@ class Modify
}
if ($this->auditLogger !== null) {
$this->auditLogger->logInsert($this->attributes[$this->idName]);
$this->auditLogger->logInsert($this->table, $this->attributes[$this->idName]);
}
}
@ -151,7 +151,7 @@ class Modify
$stmt->execute(array_merge($attributes, [$this->idName => $this->attributes[$this->idName]]));
if ($this->auditLogger !== null) {
$this->auditLogger->logUpdate($this->attributes[$this->idName], $this->diff);
$this->auditLogger->logUpdate($this->table, $this->attributes[$this->idName], $this->diff);
}
}