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?
On 11 Cze, 15:25, "jitka (poLK)" <[email protected]> wrote:
> > A bug, is a bug, is a bug.
>
> Feel free to repeat it indefinitely. To me, bug is a bug only if
> a) others are able to reproduce it and
> b) it is not a feature.
>
> I think you are bug, a bug, a bug, because you don't work for me. Now
> decide if you'll close it as wontfix, worksforme or needmoreinfo.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---