lib/Doctrine/DBAL/Connection.php
private function detectDatabasePlatform()
    {
        $version = $this->getDatabasePlatformVersion();

        if ($version !== null) {
            assert($this->_driver instanceof VersionAwarePlatformDriver);

            $this->platform = $this->_driver->createDatabasePlatformForVersion($version);
        } else {
            $this->platform = $this->_driver->getDatabasePlatform();
        }

        $this->platform->setEventManager($this->_eventManager);
    }
private function detectDatabasePlatform()
    {
        $version = $this->getDatabasePlatformVersion();

        if ($version !== null) {
            assert($this->_driver instanceof VersionAwarePlatformDriver);

            $this->platform = $this->_driver->createDatabasePlatformForVersion($version);
        } else {
            $this->platform = $this->_driver->getDatabasePlatform();
        }

        $this->platform->setEventManager($this->_eventManager);
    }
private function detectDatabasePlatform ( ) { $ version = $ this -> getDatabasePlatformVersion ( ) ; if ( $ version !== null ) { assert ( $ this -> _driver instanceof VersionAwarePlatformDriver ) ; $ this -> platform = $ this -> _driver -> createDatabasePlatformForVersion ( $ version ) ; } else { $ this -> platform = $ this -> _driver -> getDatabasePlatform ( ) ; } $ this -> platform -> setEventManager ( $ this -> _eventManager ) ; }
Detects and sets the database platform.

Evaluates custom platform class and version in order to set the correct platform.

@throws DBALException If an invalid platform was specified for this connection.
Detects and sets the database platform .