Hi,

I want to add a comment after each query that is build by cakePHP.
So when I do $this->findAll($conditions) I want it to automagicly be
added with a comment that will show up in my log. Example:
SELECT * FROM posts AS Post WHERE id=12; /* getPost -
posts_controller.php */
The comment is then the function and filename where this query is
called/executed.
The later I can do with parsing the backtrace, but the first I don't
know.

Is there some beforeFind magic I can do? Or another thing?

Thanks in advance!
- primeminister
--~--~---------~--~----~------------~-------~--~----~
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