Skip to content

Commit 69a063b

Browse files
Added logging of record attributes when it is deleted
1 parent 0d5604b commit 69a063b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

behaviors/LoggingBehavior.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public function logChanges($event) {
111111

112112
} elseif ($event->name === ActiveRecord::EVENT_AFTER_DELETE) {
113113
$action = 'delete';
114-
$from = $to = null;
114+
$from = $this->removeExcluded($event->sender->attributes);
115+
$to = null;
115116
}
116117

117118
$modelClass = null;

0 commit comments

Comments
 (0)