We had same problem on find queries with MySQL 5.0 and model for view
based on UNION query. For a while we lived with check for key, then
upgraded MySQL to 5.1 and problem gone.

On Oct 5, 9:28 pm, foldiman <[email protected]> wrote:
> I'm currently deploying a CakePHP site that works fine in one
> environment (staging), but then encounters errors in another (live).
> The error... my result array keys in staging reflect the joined tables
> while my array keys in live are numeric. This means, on live, when I
> state $my_var = $results['MyModel']['myData'], 'MyModel' is not a
> valid index. However, $results[0]['myData'] is valid bc the key has
> been converted to a numeric index.
>
> Any ideas on what would cause this? If so, I could hunt down the
> difference between the environments.
>
> Thanks!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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