> Oh, interesting...
Yeah, I'll be happy to include it in my publicly shared code just as
soon as I can get the thing working. :)
> How about a full output of $this->data then? I know I have had
> problems saving if the array is not in the correct order. i.e. If you
> try to do $this->Product->save() then the Product array should appear
> first in $this->data.
OK, here's the whole thing:
Array
(
[Product] => Array
(
[id] => 6
[name] => Classic Men's Parka
)
[Category] => Array
(
[multi_field] => Array
(
[0] => 4
)
)
[Colour] => Array
(
[multi_field] => Array
(
[0] => 4
[1] => 8
)
)
[Size] => Array
(
[multi_field] => Array
(
[0] => 1
[1] => 2
[2] => 3
)
)
)
> Have you turned debug on to 2 - if you have then
> is it showing you the SQL?
Yes, but it's redirecting afterwards. Let me tell it not to and see
what it outputs and paste the relevant looking bits:
25 UPDATE `products` AS `Product` SET `Product`.`id` = 6,
`Product`.`name` = 'Classic Men\'s Parka', `Product`.`slug` = 'classic-
mens-parka' WHERE `Product`.`id` IN (6) 0 0
26 SELECT `CategoriesProduct`.`product_id` FROM `categories_products`
AS `CategoriesProduct` WHERE `product_id` = 6 1 1 0
27 DELETE `CategoriesProduct` FROM `categories_products` AS
`CategoriesProduct` WHERE `CategoriesProduct`.`product_id` IN (6)
1
0
28 SELECT COUNT(*) AS `count` FROM `categories_products` AS
`CategoriesProduct` WHERE `CategoriesProduct`.`product_id` = 6 1
1 0
29 INSERT INTO `categories_products` (`category_id`,`product_id`)
VALUES ('0',6)
At least it looks like there are no errors!
Thanks,
Zoe.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---