09/02
                                    2018
                                
                            
                        
                         Wallogit.com
                    
                    2017 © Pedro Peláez
                    
                    
                    
                    
                
                
            
Revision plugin for CakePHP
NOTE: It's still in development mode, do not use in production yet!, (*1)
It is developed for CakePHP 3.x., (*2)
You can install plugin into your CakePHP application using composer., (*3)
The recommended way to install composer packages is:, (*4)
composer require kicaj/revision dev-master
Load the Behavior in your src/Model/Table/YourTable.php (or if You have AppTable.php). Your table should have two additionals columns: revision_id and revision_hash., (*5)
public function initialize(array $config)
{
    parent::initialize($config);
    $this->addBehavior('Revision.Revision');
}
The field revision_id should have the same type like primary key of table., (*6)
modified field when highest parent is deleted