one (sorry :P).
Disabling the redirect lines the debugger shows this queries:
INSERT INTO `robots` (`name`, `description`, `content`, `is_public`,
`created`) VALUES ('as', 'asdasda', 'sfasfasf', 1, '2009-02-27
11:16:31')
SELECT LAST_INSERT_ID() AS insertID
SELECT `RobotsTag`.`tag_id` FROM `robots_tags` AS `RobotsTag` WHERE
`RobotsTag`.`robot_id` = 7
(I previously omitted some fileds to clean the code)
On Feb 27, 1:28 am, mscdex <msc...@gmail.com> wrote:
> On Feb 26, 7:12 pm, Xoubaman <xouba...@gmail.com> wrote:
>
> > I'm sure there is a more elegant way to do this (or simply actually do
> > this). Any suggestions?
>
> Try getting rid of the second "Tag" subarray, so that it looks like
> this:
>
> Array
> (
> [Robot] => Array
> (
> [name] => The name
> [description] => The description
> )
>
> [Tag] => Array
> (
> [0] => Array
> (
> [id] => tag1
> )
> [1] => Array
> (
> [id] => tag2
> )
> )
> )
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment