$_table : \Cake\ORM\Table
Table which this behavior is attached to.
Handles "created_by", "modified_by" fields for a given table. It's similar to the "created", "modified" automagic, but it stores the logged User's ID.
This is useful to track who created records, and the last user that has changed them.
$_defaultConfig : array
idCallable: It can be either a callable method that should return logged
User's ID or a string representing a
session key from where to read
the ID. By Defaults it's set yo
Auth.id for reading from Auth's session.
createdByField: The name of the "created_by" field in DB. Defaults to
modifiedByField: The name of the "modified_by" field in DB. Default to
userModel: The name of the Users class table, used to bind user's
information to the table being managed by this behavior. Defaults to
beforeSave(\Cake\Event\Event $event, \Cake\ORM\Entity $entity, array $options) : boolean
Run before a model is saved.
The event that was triggered
The entity being saved
Array of options for the save operation
True if save should proceed, false otherwise