lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
public function registerDoctrineTypeMapping($dbType, $doctrineType)
    {
        if ($this->doctrineTypeMapping === null) {
            $this->initializeAllDoctrineTypeMappings();
        }

        if (! Types\Type::hasType($doctrineType)) {
            throw DBALException::typeNotFound($doctrineType);
        }

        $dbType                             = strtolower($dbType);
        $this->doctrineTypeMapping[$dbType] = $doctrineType;

        $doctrineType = Type::getType($doctrineType);

        if (! $doctrineType->requiresSQLCommentHint($this)) {
            return;
        }

        $this->markDoctrineTypeCommented($doctrineType);
    }
public function registerDoctrineTypeMapping($dbType, $doctrineType)
    {
        if ($this->doctrineTypeMapping === null) {
            $this->initializeAllDoctrineTypeMappings();
        }

        if (! Types\Type::hasType($doctrineType)) {
            throw DBALException::typeNotFound($doctrineType);
        }

        $dbType                             = strtolower($dbType);
        $this->doctrineTypeMapping[$dbType] = $doctrineType;

        $doctrineType = Type::getType($doctrineType);

        if (! $doctrineType->requiresSQLCommentHint($this)) {
            return;
        }

        $this->markDoctrineTypeCommented($doctrineType);
    }
public function registerDoctrineTypeMapping ( $ dbType , $ doctrineType ) { if ( $ this -> doctrineTypeMapping === null ) { $ this -> initializeAllDoctrineTypeMappings ( ) ; } if ( ! Types \ Type :: hasType ( $ doctrineType ) ) { throw DBALException :: typeNotFound ( $ doctrineType ) ; } $ dbType = strtolower ( $ dbType ) ; $ this -> doctrineTypeMapping [ $ dbType ] = $ doctrineType ; $ doctrineType = Type :: getType ( $ doctrineType ) ; if ( ! $ doctrineType -> requiresSQLCommentHint ( $ this ) ) { return ; } $ this -> markDoctrineTypeCommented ( $ doctrineType ) ; }
Registers a doctrine type to be used in conjunction with a column type of this platform.

@param string $dbType
@param string $doctrineType

@throws DBALException If the type is not found.
Registers a doctrine type to be used in conjunction with a column type of this platform .