That's really odd... $this->data looks fine for my project now too...
Array
(
[Product] => Array
(
[id] => 6
[name] => Classic Men's Parka
)
[Category] => Array
(
[Category] => Array
(
[0] => 4
)
)
[Colour] => Array
(
[Colour] => Array
(
[0] => 4
[1] => 8
)
)
[Size] => Array
(
[Size] => Array
(
[0] => 1
[1] => 2
[2] => 3
)
)
)
But $this->Product->save($this->data) is still trying to insert
duplicates.
Query: INSERT INTO `colours_products` (`product_id`,`colour_id`)
VALUES (6,4), (6,4), (6,8)
Query: INSERT INTO `products_sizes` (`product_id`,`size_id`) VALUES
(6,4), (6,4), (6,8), (6,1), (6,2), (6,3)
Oh well, at least I know it's something I'm doing wrong personally,
even if I can't work out exactly what it is that I'm doing wrong!
Thanks for all your help,
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
-~----------~----~----~----~------~----~------~--~---