cakephp voir la requête SQL compilée avant l'exécution

Ma requête obtient l'erreur de dépassement de délai sur chaque course. Sa pagination avec des jointures.
Je veux debug SQL, mais depuis, je reçois un délai d'attente, je ne peux pas le voir.

Comment puis-je voir la compilation de la Requête SQL avant l'exécution?


Gâteau code:

$this -> paginate = array(
        'limit' => '16',
        'joins' => array( array(
                'table' => 'products',
                'alias' => 'Product',
                'type' => 'LEFT',
                'conditions' => array('ProductModel.id = Product.product_model_id')
            )),
        'fields' => array(
            'COUNT(Product.product_model_id) as Counter',
            'ProductModel.name'
            ),
        'conditions' => array(
            'ProductModel.category_id' => $category_id,
        ),
        'group' => array('ProductModel.id')
    );

source d'informationauteur yossi