You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: behaviors/LoggingBehavior.php
+14-1
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,11 @@ class LoggingBehavior extends Behavior {
27
27
'expire' => 'log_expire',
28
28
];
29
29
30
+
/**
31
+
* @var mixed : Value to use as userID during a console application. Be aware of relations/MySQL JOIN queries though - might want to use `null` for that reason.
32
+
*/
33
+
public$consoleUserID = 0; //default to 0 since we assume a normal user will never have ID 0 (at least never should)
34
+
30
35
/**
31
36
* @var array : Exclude logging these events. Currently these are available: `insert`, `update`, `delete`
32
37
*/
@@ -161,7 +166,15 @@ public function logChanges($event) {
0 commit comments