Skip to content

paxal78/sfTraceableBehaviourPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Usage:

this is a plugin tested in Symfony 1.4

after you added plugin in ProjectConfiguration.class.php u can use the behaviour in yoiur schema.yml



Table:
  actAs:
    Traceable: ~
  columns:
  	....      
    

in the options you can change the name of ip address field



Table:
  actAs:
    Traceable:
      name: my_field
  columns:
  	....      
    


$Model->trace(); // not save the record
$Model->save(); 
    


$Model->trace(true); // also save the record

    

About

Trace doctrine record last update and IP address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages