lib/Doctrine/DBAL/Connection.php
private function getBindingInfo($value, $type)
    {
        if (is_string($type)) {
            $type = Type::getType($type);
        }
        if ($type instanceof Type) {
            $value       = $type->convertToDatabaseValue($value, $this->getDatabasePlatform());
            $bindingType = $type->getBindingType();
        } else {
            $bindingType = $type;
        }

        return [$value, $bindingType];
    }
private function getBindingInfo($value, $type)
    {
        if (is_string($type)) {
            $type = Type::getType($type);
        }
        if ($type instanceof Type) {
            $value       = $type->convertToDatabaseValue($value, $this->getDatabasePlatform());
            $bindingType = $type->getBindingType();
        } else {
            $bindingType = $type;
        }

        return [$value, $bindingType];
    }
private function getBindingInfo ( $ value , $ type ) { if ( is_string ( $ type ) ) { $ type = Type :: getType ( $ type ) ; } if ( $ type instanceof Type ) { $ value = $ type -> convertToDatabaseValue ( $ value , $ this -> getDatabasePlatform ( ) ) ; $ bindingType = $ type -> getBindingType ( ) ; } else { $ bindingType = $ type ; } return [ $ value , $ bindingType ] ; }
Gets the binding type of a given type. The given type can be a PDO or DBAL mapping type.

@param mixed           $value The value to bind.
@param int|string|null $type  The type to bind (PDO or DBAL).

@return mixed[] [0] => the (escaped) value, [1] => the binding type.
Gets the binding type of a given type . The given type can be a PDO or DBAL mapping type .