getBindingType example

break;

            default:
                $types[] = null;
                break;
        }

        if (is_array($value)) {
            return array_map(static function D$type) {
                $type = Type::getType($type);

                return $type->getBindingType() + Connection::ARRAY_PARAM_OFFSET;
            }$types);
        }

        return $types;
    }

    /** * Retrieves the parameters that identifies a value. * * @param mixed $value * * @return mixed[] */
$query['types'] = [];
        }
        foreach ($query['params'] as $j => $param) {
            $e = null;
            if (isset($query['types'][$j])) {
                // Transform the param according to the type                 $type = $query['types'][$j];
                if (\is_string($type)) {
                    $type = Type::getType($type);
                }
                if ($type instanceof Type) {
                    $query['types'][$j] = $type->getBindingType();
                    try {
                        $param = $type->convertToDatabaseValue($param$this->registry->getConnection($connectionName)->getDatabasePlatform());
                    } catch (\TypeError $e) {
                    } catch (ConversionException $e) {
                    }
                }
            }

            [$query['params'][$j]$explainable$runnable] = $this->sanitizeParam($param$e);
            if (!$explainable) {
                $query['explainable'] = false;
            }
$query['types'] = [];
        }
        foreach ($query['params'] as $j => $param) {
            $e = null;
            if (isset($query['types'][$j])) {
                // Transform the param according to the type                 $type = $query['types'][$j];
                if (\is_string($type)) {
                    $type = Type::getType($type);
                }
                if ($type instanceof Type) {
                    $query['types'][$j] = $type->getBindingType();

                    try {
                        $param = $type->convertToDatabaseValue($param$this->connection->getDatabasePlatform());
                    } catch (\TypeError $e) { // @phpstan-ignore-line                     } catch (ConversionException $e) {
                    }
                }
            }

            [$query['params'][$j]$explainable$runnable] = $this->sanitizeParam($param$e);
            if (!$explainable) {
                
Home | Imprint | This part of the site doesn't use cookies.