josegonzalez / cakephp-version

CakePHP3: plugin that facilitates versioned database entities
MIT License
51 stars 22 forks source link

[question] Why we need the EventListener and the VersionListener #3

Closed flashios09 closed 9 years ago

flashios09 commented 9 years ago

Hi @josegonzalez , Thanks for this awesome cakephp3 plugin :+1: Sorry for my bad english :(

I wanted to store the whole data serialized in a single field instead of using one row per field for the version so i changed the beforeSave callback in the Version Behavior and it works. I added also a Json database type http://book.cakephp.org/3.0/en/orm/database-basics.html#Cake\Database\Type::map .

I have just a question why we need the EventListener, the VersionListener and the bootsrap_cli ?

josegonzalez commented 9 years ago

They are used for Bake Integration.