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.AuditableBehaviorOr 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()