pmPropelObjectLogBehaviorPlugin - 1.0.0

Maintains a class changelog (the changes of each instance).

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

pmPropelObjectLogBehaviorPlugin

Maintains a class changelog (the changes of each instance).

Installation

  • Install the plugin

      symfony plugin:install pmPropelObjectLogBehaviorPlugin
    
  • Clear the cache

      symfony cc
    
  • edit config/schema. For example, add the behavior to Article class.

      Article:
        id:
        ...
        behaviors:
          pm_object_log: []
    
  • get the changes of an instance

      $art = ArticlePeer::retrieveByPk(1);
      $art->getObjectLogs();