In your core.php set your debug level to 2 and look at the sql-log table output to see the queries that cake is generating.
Also, you may want to post relevant code to http://bin.cakephp.org and then post the url to your code here, as it will be far more readable for everyone here. On May 14, 2:49 am, nuhaa <[EMAIL PROTECTED]> wrote: > hi, > just a simple question. i'm trying to get only Decision.id so my > findAll() should be like this right? > > $result = $this->Meeting->Decision->Status->findAll('Status.action_date <= > > Decision.deadline',array('Decision.id')); > > this will give me nothing (execution time > 30 sec). but when i use > this, it works > > $result = $this->Meeting->Decision->Status->findAll('Status.action_date <= > > Decision.deadline',array('Status.*','Decision.id')); > > it will return me something like this, which is fine with me > Array > ( > [0] => Array > ( > [Status] => Array > ( > [id] => 1 > [decision_id] => 51 > ..... > ) > > [Decision] => Array > ( > [id] => 51 > ) > ) > > } > > just to note, i also tried > $result = $this->Meeting->Decision->Status->findAll('Status.action_date <= > > Decision.deadline',array('Status.decision_id','Decision.id')); > but i received 'Fatal error: Maximum execution time of 30 seconds > exceeded in /var/www/mymeeting/trunk/cake/libs/debugger.php on line > 412' > so as this one > $result = $this->Meeting->Decision->Status->findAll('Status.action_date <= > > Decision.deadline',array('Status.decision_id')); > > i'm curious. any idea why it works like that? > > thx > -nuhaa --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---