Re: logging or saving all sql statements in Model

2006-12-13 Thread Copongcopong
thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 opti

Re: logging or saving all sql statements in Model

2006-12-08 Thread nate
Queries are actually logged at the db level, and you can get an access to the database object by doing the following: $db =& ConnectionManager::getDataSource('default'); $db->fullDebug needs to be set to true in order to enable query logging. Once that happens, any queries which are executed ag

Re: logging or saving all sql statements in Model

2006-12-08 Thread Copongcopong
bump --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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

logging or saving all sql statements in Model

2006-12-04 Thread Copongcopong
Is there an assigned variable for all created sql statement in a model that I can save for logging and tracking purpose (via beforeSave, beforeDelete ...)? I am planning to create a tracking for the sql statement without altering the basecode of CakePHP. Thanks --~--~-~--~~--