original_string: 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'));
          }
      }
code: 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'));
          }
      }
code_tokens: 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' ) ) ; } }
docstring: Initialize db connection
  @param TableMap $tableMap
docstring_tokens: Initialize db connection