protected function createConnection(TableMap $tableMap)
    {
        $this->con = Propel::getConnection($tableMap::DATABASE_NAME);
        $this->con->beginTransaction();
        if(method_exists($this->con, 'useDebug')) {
            Logger::log('Enabling debug queries mode', LOG_INFO);
            $this->con->useDebug(Config::getParam('debug'));
        }
    }