heristop / propel-auditable-behavior
Propel behavior to track and record changes in your models
dev-master
2014-09-13 19:30 UTC
Requires
- php: >=5.2.4
- propel/propel1: >=1.6.4
This package is not auto-updated.
Last update: 2025-01-28 09:17:19 UTC
README
AuditableBehavior
Installation
Download the AuditableBehavior.php file in src/, put it somewhere on your project, then add the following line to your propel.ini:
propel.behavior.auditable.class = path.to.AuditableBehavior
Or use composer adding the requirement below:
{ "require": { "heristop/propel-auditable-behavior": "*" } }
Usage
Add this line to your schema.xml:
<behavior name="auditable" />
The Behavior will add several methods to the object:
public function countActivity() public function flushActivities() public function getLastActivities()