Thanks for the suggestion Christian. Cake doesn't alias columns, it
just lists them inside odd single quotes. I tried aliasing all my
columns but it made no difference. Since I have a workaround i'm not
going to spend any more time on it.

On May 11, 2:05 am, "Christian Winther" <[EMAIL PROTECTED]> wrote:
> Just make sure to alias the fields in your SELECT like cake DBO normally does
>
> SELECT Model.id AS "Model.id"   I think -
>
> Configure::write('debug', 2);
>
> And check how cake does it :)
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tim W
> Sent: 10. maj 2008 16:03
> To: CakePHP
> Subject: Accessing views from Cake - problem with array nesting
>
> Hi all,
>
> I've just spent a hour or so tracking down an issue before realising
> it was caused by pointing cake at a view instead of a database table.
> In general views work with Cake, but in some seemingly random cases
> they fail.
>
> The problem i've run into was identified and a patch suggested in this
> conversation (subject "ake FindAll mysql view occured errors" if the
> link doesn't work)
>
> http://groups.google.com/group/cake-php/browse_thread/thread/e747844d...
>
> Is there any more recent information or workarounds? I don't like to
> change the cake core as it makes upgrading more difficult - i'm on
> version 1.2.0.6311 beta.
>
> Thanks
>
> Tim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to