It would be appreciated if you stick to CakePHP's naming conventions. The current fields id and version_id have to be reconsidered.
id sould be: primary key, a simple "counter" -> auto increment
new field: MODEL_id is the relation to MODEL since the Revision model $belongsTo MODEL.
Mainly for beginners it would be much easier because they learn to use anothermodel_id to link to anothermodel with belongsTo/hasMany
It would be appreciated if you stick to CakePHP's naming conventions. The current fields
idandversion_idhave to be reconsidered.idsould be: primary key, a simple "counter" -> auto incrementnew field:
MODEL_idis the relation to MODEL since the Revision model $belongsTo MODEL.Mainly for beginners it would be much easier because they learn to use
anothermodel_idto link to anothermodel with belongsTo/hasMany