mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Criteria on Collection not working when using symfonys ULID type #6596
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 @n3o77 on GitHub (Dec 25, 2020).
I'm using the ULID type from symfony as
idas described here:I have an entity with an ManyToMany collection:
I try to filter this collection with a criteria but it won't find any matches because the ULID isn't passed as binary but as string:
If i don't use the criteria and just access the collection everything works fine and the id is passed as hex:
@PSF1 commented on GitHub (Oct 6, 2021):
This work for me:
$divisionsare instances of a Doctrine entity with this ID field:My Doctrine environment:
Symfony 5.3
doctrine/doctrine-bundle 2.4.2
doctrine/orm: 2.10.1