Hi Grzegorz,
> I just came up with something, It's not something I hate - just an
> idea to improve Model (?):
>
> If Model could keep track of queries that it calls debugging would be
> simple, I think of something like this:
>
> //in controller:
> $this->Thing->clearQueryTrace(); //remove unimportant info
> //+
> $a = $this->Thing->find('all');
> $b = $this->Thing->find('count'); // just examples
> //++
> debug($this->Thing->getQueryTrace()) // dump every query that was
> called between + and ++
>
> In many cases I get the idea how to use stuff (models) from queries
> that it generates. It would be convenient if I didn't have to look for
> those queries in the table of 70 other queries (in 2nd debug level).
>
> Does it make sense to you?
I like this idea!
Jon
--
jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---