3131use  Symfony \Component \PropertyAccess \PropertyAccess ;
3232use  Symfony \Component \PropertyAccess \PropertyAccessorInterface ;
3333use  Symfony \Component \Serializer \NameConverter \NameConverterInterface ;
34+ use  Symfony \Component \Uid \Ulid ;
35+ use  Symfony \Component \Uid \Uuid ;
3436
3537/** 
3638 * The search filter allows to filter a collection by given properties. 
@@ -196,7 +198,6 @@ protected function filterProperty(string $property, $value, QueryBuilder $queryB
196198        }
197199
198200        $ metadata$ this getNestedMetadata ($ resourceClass$ associations
199- 
200201        if  ($ metadatahasField ($ field
201202            if  ('id '  === $ field
202203                $ valuesarray_map ($ this getIdFromValue (...), $ values
@@ -255,6 +256,7 @@ protected function filterProperty(string $property, $value, QueryBuilder $queryB
255256
256257        $ expected\count ($ values
257258        $ valuesarray_filter ($ valuesstatic  fn  ($ valuenull  !== $ value
259+         $ valuesarray_map (static  fn  ($ value$ valueinstanceof  Uuid || $ valueinstanceof  Ulid ? $ valuetoBinary () : $ value$ values
258260        if  ($ expected\count ($ values
259261            /* 
260262             * Shouldn't this actually fail harder? 
@@ -272,7 +274,6 @@ protected function filterProperty(string $property, $value, QueryBuilder $queryB
272274            $ associationAliasaddJoinOnce ($ queryBuilder$ queryNameGenerator$ alias$ associationField
273275            $ associationField$ associationFieldIdentifier
274276        }
275- 
276277        $ this addWhereByStrategy ($ strategy$ queryBuilder$ queryNameGenerator$ associationAlias$ associationField$ values$ caseSensitive
277278    }
278279
0 commit comments