Why not write it up as a behavior? Mariano Iglesias wrote: > I'm not into including this on the CakePHP core, it is so simple to add it > by yourself that it is pointless adding it to the core. > > Soft deletes are for certain occasions while hard deletes are the most > common thing. > > Other than that thanks for taking the effort to propose a new functionality > to the community. > > -MI > > --------------------------------------------------------------------------- > > Remember, smart coders answer ten questions for every question they ask. > So be smart, be cool, and share your knowledge. > > BAKE ON! > > blog: http://www.MarianoIglesias.com.ar > > > -----Mensaje original----- > De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre > de Jon Bennett > Enviado el: MiƩrcoles, 07 de Febrero de 2007 08:08 a.m. > Para: cake-php@googlegroups.com > Asunto: softDelete, would anyone find useful enough.... > > ... to add to core? > > At present if a table has created and modifed fields, these are > updated automatically, we could expand on this to include a deleted > field, then add an extra param to Model->del($id,$cascade,$soft) and > if $soft is true, it would first check the field exists with hasField, > and then set the datetime.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---