Hmmm, this finally runs an update:

        function block($id) {
                $this->id = $id;

                $data = array();
                $data['Friend']['status'] = 'blocked';
                $data['Friend']['blockedTime'] = time();

                return $this->save($data, false);
        }

But no rows are affected by it, because its calling friends.id, ideas?

UPDATE `friends` SET `status` = 'blocked', `blockedTime` = 1231456514
WHERE `friends`.`id` = 23
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to