protected function addDoctrineTypes(Connection $connection)
    {
        $name = $connection->getDriverName();

        foreach (array_get($this->types, $name, []) as $type => $handler) {
            if (!Type::hasType($type)) {
                Type::addType($type, $handler);
            }

            $connection->getDoctrineConnection()
                ->getDatabasePlatform()
                ->registerDoctrineTypeMapping($type, $type);
        }
    }
protected function addDoctrineTypes(Connection $connection)
    {
        $name = $connection->getDriverName();

        foreach (array_get($this->types, $name, []) as $type => $handler) {
            if (!Type::hasType($type)) {
                Type::addType($type, $handler);
            }

            $connection->getDoctrineConnection()
                ->getDatabasePlatform()
                ->registerDoctrineTypeMapping($type, $type);
        }
    }
protected function addDoctrineTypes ( Connection $ connection ) { $ name = $ connection -> getDriverName ( ) ; foreach ( array_get ( $ this -> types , $ name , [ ] ) as $ type => $ handler ) { if ( ! Type :: hasType ( $ type ) ) { Type :: addType ( $ type , $ handler ) ; } $ connection -> getDoctrineConnection ( ) -> getDatabasePlatform ( ) -> registerDoctrineTypeMapping ( $ type , $ type ) ; } }
Add Doctrine types for the connection.

@param Connection $connection
Add Doctrine types for the connection .