[PR #11546] fix: Quote custom types correctly in SQLFilter #13092

Closed
opened 2026-01-22 16:16:09 +01:00 by admin · 0 comments
Owner

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:

  • Symfony 7.1 app
  • doctrine/dbal:3.8.2
  • doctrine/orm:3.2.1, currently updating from doctrine/orm:2.19.5
  • I am using the UlidType from the doctrine bridge (using symfony/ulid underneath) as primary key to the Organization entity

My 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

**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: * Symfony 7.1 app * `doctrine/dbal:3.8.2` * `doctrine/orm:3.2.1`, currently updating from `doctrine/orm:2.19.5` * I am using the `UlidType` from the doctrine bridge (using `symfony/ulid` underneath) as primary key to the `Organization` entity ## My 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
admin added the pull-request label 2026-01-22 16:16:09 +01:00
admin closed this issue 2026-01-22 16:16:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#13092