heristop/propel-auditable-behavior

Propel behavior to track and record changes in your models

dev-master 2014-09-13 19:30 UTC

This package is not auto-updated.

Last update: 2021-04-12 15:14:23 UTC


README

Build Status

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