public function debug($enabled = true)
    {
        if ($enabled === true) {
            $this->debug = $enabled;
            if ($this->dsql) {
                $this->dsql->debug($enabled);
            }
        } else {
            parent::debug($enabled);
        }

        return $this;
    }
public function debug($enabled = true)
    {
        if ($enabled === true) {
            $this->debug = $enabled;
            if ($this->dsql) {
                $this->dsql->debug($enabled);
            }
        } else {
            parent::debug($enabled);
        }

        return $this;
    }
public function debug ( $ enabled = true ) { if ( $ enabled === true ) { $ this -> debug = $ enabled ; if ( $ this -> dsql ) { $ this -> dsql -> debug ( $ enabled ) ; } } else { parent :: debug ( $ enabled ) ; } return $ this ; }
Turns debugging mode on|off for this model. All database operations will be outputed.

@param bool $enabled

@return $this
Turns debugging mode on|off for this model . All database operations will be outputed .