CakePHP-Assets
CakePHP-Assets copied to clipboard
Revsion behaviour: naming conventions
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