You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTte.idAS id, te.titleAS title
FROM
attribute te
JOIN group_product_attribute t ONt.attribute_id=te.idWHEREt.product_attribute_group_id='01ETDVSFVRB9Q211CCTGRAPMNY'ANDte.title='test';
If i don't use the criteria and just access the collection everything works fine and the id is passed as hex:
$divisionIds = [];
foreach ($divisionsas$division) {
// This parse any valid ULID string. <------------$ulid = newUlid($division->getId());
// This transform ULID to a binary representation. <------------$divisionIds[] = $ulid->toBinary();
}
// Add divisions list how parameters.// This work ok when we use parent::matching() <------------// to query in a Doctrine repository context. $criteria->andWhere(Criteria::expr()->in('id', $divisionIds));
$divisions are instances of a Doctrine entity with this ID field:
I'm using the ULID type from symfony as
id
as 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:
The text was updated successfully, but these errors were encountered: