diff --git a/src/Database/Query/Modify.php b/src/Database/Query/Modify.php index 8246e0e..fa66c33 100755 --- a/src/Database/Query/Modify.php +++ b/src/Database/Query/Modify.php @@ -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); } }