This extension adds storage history of changes to the AR model
The preferred way to install this extension is through composer.
Either run
php composer.phar require nhkey/yii2-activerecord-history "*"
or add
"nhkey/yii2-activerecord-history": "*"
to the require section of your composer.json.
If you are using DBManager as Manager, you need to run
php yii migrate --migrationPath=@vendor/nhkey/yii2-activerecord-history/migrations
If the property is not specified, the default manager is DBManager. In the extension is two managers: DBManager and FileManager. You can extend the class BaseManager.
There are two way how usage this extension:
- As behavior
- As extend the class ActiveRecord DEPRECATED
For update you need to run:
php yii migrate --migrationPath=@vendor/nhkey/yii2-activerecord-history/migrations
Author: Mikhail Mikhalev
Email: [email protected]