Re: afterDelete not running as intended

2011-02-24 Thread adam_g2000
]['order'] )); K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf 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

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? ?php class images extends AppModel { var $name = 'images'; var

RE: afterDelete not running as intended

2011-02-24 Thread Krissy Masters
@googlegroups.com] On Behalf Of adam_g2000 Sent: Thursday, February 24, 2011 4:36 PM To: CakePHP Subject: 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

Re: afterDelete not running as intended

2011-02-24 Thread adam_g2000
-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 Subject: Re: afterDelete not running as intended Hi again Jeremy! Thanks for that, there's my sanity check! I've done

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'),

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

RE: afterDelete not running as intended

2011-02-23 Thread Krissy Masters
: 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 IDs and Orders. $conditions = array( 'fields' = array