Skip to content

SQLFilter gives an unclear error when using non-Stringable parameters #11706

@7-zete-7

Description

@7-zete-7

Bug Report

Q A
Version ~3

Summary

In ORM 2, parameters were converted according to the DBAL types passed with the parameters. In ORM 3 (after #9727), parameters began to be explicitly converted to a string.

Current behavior

Error while explicitly converting to string.

Expected behavior

Converting specified parameters according to the passed types.

Reproducer: https://github.com/7-zete-7/doctrine-orm-reproducer-1

[critical] Uncaught PHP Exception Error: "Object of class Symfony\Component\Clock\DatePoint could not be converted to string" at SQLFilter.php line 109

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions