hi bakers!

Im not sure if this is a cake question or more just a general php
question.

When i create a database view that includes some calculations and i
perform a findAll against that view cake give the following output:

Array
(
   [0] => Array
     (
        [Users] => Array
           (
               [id] => 1
               [name] => 'jane'
           )

         [0] => Array
            (
                [total_cost] => 400
            )
         [group] => Array
            (
                [descr] => 'public'
            )
     )

I really need the following output:

Array (
    [id] => 1
    [name] => 'jane'
    [total_cost] => 400
    [descr] => 'public'
)

Can cake help me out here or am i left to code a solution in php?

Cheers,
Trav.
--~--~---------~--~----~------------~-------~--~----~
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