In my opinion you should use only ONE table and ONE model for this. Just create another field at posts table, "approved" for example, and set it to 0 or 1
Em quinta-feira, 11 de abril de 2013 06h07min55s UTC-3, Alex Bovey escreveu: > > On Wed, Apr 10, 2013 at 2:33 PM, Christian Cadéré > <[email protected]<javascript:> > > wrote: > >> One solution : use the Revision Behavior that stores revisions of any >> model you want : >> http://bakery.cakephp.org/articles/alkemann/2008/12/18/revision-behavior-revision-control-made-easy >> You will have to make a special table for posts_revs where all revisions >> of posts will be stored, but that way you will be able to fetch any version >> you want of your posts. In your case it will be the last validated one, but >> you will be able to use it for further functionalities. >> > > Hi Christian, > > Thanks very much for your reply and advice also - revision behavior looks > like it might do the best job so I'll take a closer look at that now. > > Thanks for the suggestion. > > Alex > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
