mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #11546] fix: Quote custom types correctly in SQLFilter #13092
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/11546
State: closed
Merged: No
This enables the connection to quote the parameters correctly according to the type definition.
My scenario:
doctrine/dbal:3.8.2doctrine/orm:3.2.1, currently updating fromdoctrine/orm:2.19.5UlidTypefrom the doctrine bridge (usingsymfony/ulidunderneath) as primary key to theOrganizationentityMy problem:
I'm using a SQLFilter to permanently set the ulid of the organization permanently for users. After updating
doctrine/orm, I got an exception that the format of the query parameter wouldn't conform to the expectation of the database.My solution
On investigation, I found that the SQLFilter doesn't use the column type to quote the value correctly. This change is supposed to ensure that the correct quoting is done