mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Cannot use criteria matching with entities where the primary key is a binary ULID #6824
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?
Originally created by @jdelaune on GitHub (Sep 8, 2021).
I'm trying to do an efficient join using criteria in one of my entities like:
However the query doctrine creates is:
As you can see it has just turned the ULID into a string which won't match the binary.
I feel like this maybe come from
vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.phpWhere maybe the
$params[]being created here isn't using the binary value.Anyone know where this bug might lie who knows a bit more about how it work, I'm also not sure who is responsible, Doctrine ORM, Doctrine Bundle, Symfony Uid...