Hi Manish,

I'm not sure if this is what your looking for, but if you change the debug
level to 2 you will get debug output at the bottom of the screen with all of
the sql queries.

If you don't see it ensure your layout has <?php echo cakeDebug; ?> in it.

On Tue, Dec 8, 2009 at 5:46 AM, Manish Pithwa <[email protected]> wrote:

> Hi All,
>
> Sometimes we want to see what query CakePHP has built and executed for
> find and save methods if query fails or we don't get desired result.
> In find method we pass array for conditions, order and grouping etc.
> but how they were interpreted to build SQL is checked if we can see
> the SQL (select * from..., update table set field='value'... etc.) .
>
> So Please reply if anybody has to solution to get SQL for find and
> save method against array parameters passed to these.
>
> Thanks in advance!
>
>
> Manish Pithwa
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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