> by default cake  findAll functions return an array in format:
> row = array(
>       Table1 = array(field1=>value1, field2=>value2...),
>       Table2 = array(field1=>value1, field2=>value2),
>       ......
> )
>
> I need an array in the following format
> row = array(
> Table1.field1=>value1,
> Table1.field2=>value2,
> Table2.field1=>value1,
> ...........
> )
>
> Is there a convenient way to do this with cakephp?

1.2's Set class should be able to help you here:

http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/
http://www.thinkingphp.org/2007/04/05/new-fix-for-array-junkies-setmerge-assembles-yummy-arrays/

hth

jb

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to