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
bject: Re: afterDelete not running as intended 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? arra

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
er_id' => $this->owner_id, >                 $currentModel.'.order >' =>  $record[$currentModel]['order'] > )); > > K > > > > -Original Message- > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf >

RE: afterDelete not running as intended

2011-02-23 Thread Krissy Masters
Of adam_g2000 Sent: Thursday, February 24, 2011 12:07 AM To: CakePHP Subject: afterDelete not running as intended Hi Guys, I have this method I've written... function tidyup() { //Re-sort orders to remove the 'hole' // Create an array of the image table contents of I

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

afterDelete not running as intended

2011-02-23 Thread adam_g2000
Hi Guys, I have this method I've written... function tidyup() { //Re-sort orders to remove the 'hole' // Create an array of the image table contents of IDs and Orders. $conditions = array( 'fields' => array('id','order'),