I'm getting the same type of error, I have a function called reorder in
my model:

function reorder($items)
{
     $newPosition = 1;
     foreach($items as $item)
     {
          $this->id = $item;
          $this->saveField('order',$newPosition++);
     }
     return true;
}

$items is an array of ids in a new order.  I've hardcoded the $items
array and $newPosition but according to the sql debug information every
record's order field is et to 5?!  weird...


On Sep 28, 8:13 pm, "Sonic Baker" <[EMAIL PROTECTED]> wrote:
> Nop, an absolutely useless piece of information!
>
> Just kidding :-) That was spot on Nate. I wouldn't have spotted that in a
> million years. Seriously appreciate it dude.
> 
> Cheers,
> 
> Sonic


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to