Do you have the following:
Configure::write('debug', 2);
in your /app/config/core.php file? If so, you ought to be seeing a
complete list of all SQL run at the foot of the page.
On Dec 8, 10: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] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en