In short, I need a way to change:
Array
(
[CrmOrder] => Array
(
[crm_schedule_id] => 59
)
)
...into this (using PHP)....
Array
(
[CrmOrder] => Array
(
[0] => Array
(
[crm_schedule_id] => 59
)
)
)
The reason I need to do this is because I want to use the CakePHP saveAll() function with an array that I'm getting from the Wizard Component. Cake's saveAll needs the data to be one level deeper because CrmOrder belongsTo CrmPerson which hasMany CrmOrder.
As this isn't necessarily a Cake specific question, I'm also adding the 'php' tag to this question.