Skip to content

Commit 8f20800

Browse files
authored
Merge pull request #1848 from k911/v2.4.x
[Sluggable] Fix searching for similar slugs when an identifier is custom doctrine type
2 parents 50e4158 + 1c3bcc3 commit 8f20800

File tree

1 file changed

+1
-1
lines changed
  • lib/Gedmo/Sluggable/Mapping/Event/Adapter

1 file changed

+1
-1
lines changed

lib/Gedmo/Sluggable/Mapping/Event/Adapter/ORM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getSimilarSlugs($object, $meta, array $config, $slug)
6464
if (!$meta->isIdentifier($config['slug'])) {
6565
$namedId = str_replace('.', '_', $id);
6666
$qb->andWhere($qb->expr()->neq('rec.'.$id, ':'.$namedId));
67-
$qb->setParameter($namedId, $value);
67+
$qb->setParameter($namedId, $value, $meta->getTypeOfField($namedId));
6868
}
6969
}
7070
$q = $qb->getQuery();

0 commit comments

Comments
 (0)