fixup! implement audit logger
This commit is contained in:
parent
ab3e52dc3b
commit
19baea31c2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user