I have model Category with fields:

id
title
parent_id

(yep category with subcategory, like threaded in bakery).
In model I don't put any belongs/has... base, empty model...

Ok.

So, when I change title by saveField

$this->Category->saveField('title',$title);

I see this query:

UPDATE `categories` SET `parent_id` = '0',`title` = 'My new title'
WHERE `id` IN (1)

So, WHY I get "parent_id = 0", Why???


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to