On Jan 13, 5:10 am, Joshua <[EMAIL PROTECTED]> wrote:
> I've been working at this for a while and I hope somebody here can
> help me. I need to execute a manual query instead of using findAll and
> I would really like the results to be formatted as if I used findAll -
> it'll save me quite a bit of extra work! I can get all the data I need
> but it's not as easy to work with when there are lots of results.
>
> So to clarify, this is roughly what I'm hoping to achieve (via
> print_r() on the results) with a regular SELECT query:
>
> Array
> (
> [0] => Array
> (
> [Story] => Array
> (
> [id] => 1
> [title] => This is the title
> [... etc ...]
> )
> [User] => Array
> (
> [id] => 1
> [name] => Joshua
> [... etc ...]
> )
> [Images] => Array
> (
> [0] => Array
> (
> [id] => 1
> [caption] => This is a caption
> [... etc ...]
> )
> [1] => Array
> (
> [id] => 2
> [caption] => This is another caption
> [... etc ...]
> )
> )
> }
>
> }
>
> Thanks again, and if I need to clarify further, just let me know!
Try showing what you are doing, and explain why you can't use findAll/
find('all') (which you probably can btw).
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---