Re: afterDelete not running as intended

2011-02-24 Thread adam_g2000
; > change to: > > $images = $this->find('all', $conditions); > > K > > > > -Original Message- > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf > > Of adam_g2000 > Sent: Thursday, February 24, 2011 4:36 PM > To: CakePHP

RE: afterDelete not running as intended

2011-02-24 Thread Krissy Masters
Image->find('all', $conditions); change to: $images = $this->find('all', $conditions); K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of adam_g2000 Sent: Thursday, February 24, 2011 4:36 PM To: CakePHP Su

Re: afterDelete not running as intended

2011-02-24 Thread adam_g2000
Hi again Jeremy! Thanks for that, there's my sanity check! I've done that, it's now sitting in my Images Model. Unfortunately, nothing happens still Here's the entire model, am I still doing something stupid? array( 'notempty' => array(

Re: afterDelete not running as intended

2011-02-24 Thread adam_g2000
Hi Krissy, Thanks for that tip - once I've solved my problem I'll definitely improve the solution with your tip in mind! Adam. On Feb 24, 8:11 pm, "Krissy Masters" wrote: > Not so much related to your post but I noticed something so tip for you: > > I do the same thing delete an ordered item 1,

RE: afterDelete not running as intended

2011-02-23 Thread Krissy Masters
Not so much related to your post but I noticed something so tip for you: I do the same thing delete an ordered item 1,2,3,4,5,6 delete #4 so I grab the Model.order I am deleting and updateAll where Model.order is greater than 4 for this example saving un-necessary save's 1,2,3 never changed so why

Re: afterDelete not running as intended

2011-02-23 Thread Jeremy Burns | Class Outfit
Is this in a model or a controller? I am guessing it's in a controller because you have a redirect statement. To make it run as afterDelete you need to move it into the model (afterDelete is a model callback) and then you'd need to remove the redirect statement because it will error. Jeremy Bur