notify()
notify(object $eventType, \Phalcon\Mvc\ModelInterface $model)
Compare model changes, and record
Parameters
object | $eventType | |
\Phalcon\Mvc\ModelInterface | $model |
Loggable creates a blame interface for changes.
Make sure you enable snapshots on your models to allow for field tracking:
public function initialize()
{
$this->keepSnapshots(true);
}
In order to keep from overloading the database or causing issues with in-transaction queries, audit logs are pushed to a queue and processed out-of-band.