Overriding models / pretending to delete rows

2007-09-12 Thread MonkeyGirl
Hi. I'm trying to override CakePHP's deleting of rows in the database so it only looks like it's deleting them. So far I've done the following: * Updated all the tables except cake_sessions to include the column `deleted` tinyint(1) unsigned NOT NULL default '0' * Created the file

Re: Overriding models / pretending to delete rows

2007-09-12 Thread Grant Cox
Oh, and as a tip, all Cake find functions actually end up using findAll - including exists, findCount, find, etc. So just change findAll - you don't have to change each of them separately. Also, if all you want to do is set some additional conditions, you could do this in the AppModel

Re: Overriding models / pretending to delete rows

2007-09-12 Thread AD7six
On Sep 13, 1:34 am, Grant Cox [EMAIL PROTECTED] wrote: Oh, and as a tip, all Cake find functions actually end up using findAll - including exists, findCount, find, etc. So just change findAll - you don't have to change each of them separately. Or look at the softDelete behavior on the