CakePHP-Assets icon indicating copy to clipboard operation
CakePHP-Assets copied to clipboard

Revsion behaviour: naming conventions

Open janriokrause opened this issue 13 years ago • 0 comments

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

janriokrause avatar Sep 21 '11 13:09 janriokrause