I've been looking around, but haven't quite found the exact same
scenario.
I have a model called Ticket it hasMany Prices. What I want to do is a
saveAll to insert a whole bunch of tickets with prices. It's inserting
the prices but not the tickets. Am I doing something wrong, or is this
just not possible. Obviously I could so a foreach and save them
individually, but I want to get the best performance. The following
array is an fraction of what I'm trying to insert with saveAll.
Array
(
[0] => Array
(
[Ticket] => Array
(
[channel_id] => 2
[event_id] => 1
[row_id] => 1
)
[Price] => Array
(
[0] => Array
(
[price] => 86.94
[quantity] => 9
[capture_timestamp] => 2007-10-10 13:00:00
)
)
)
[1] => Array
(
[Ticket] => Array
(
[channel_id] => 2
[event_id] => 1
[row_id] => 1
)
[Price] => Array
(
[0] => Array
(
[price] => 86.95
[quantity] => 8
[capture_timestamp] => 2007-10-10 13:00:00
)
)
)
[2] => Array
(
[Ticket] => Array
(
[channel_id] => 2
[event_id] => 1
[row_id] => 2
)
[Price] => Array
(
[0] => Array
(
[price] => 98.00
[quantity] => 2
[capture_timestamp] => 2007-10-10 13:00:00
)
)
)
)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---