We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d497a17 commit 694f984Copy full SHA for 694f984
lib/Gedmo/Sluggable/Mapping/Event/Adapter/ORM.php
@@ -42,7 +42,7 @@ public function getSimilarSlugs($object, $meta, array $config, $slug)
42
} else {
43
$mapping = false;
44
}
45
- if ($ubase && !$mapping) {
+ if (($ubase || $ubase === 0) && !$mapping) {
46
$qb->andWhere('rec.'.$config['unique_base'].' = :unique_base');
47
$qb->setParameter(':unique_base', $ubase);
48
} elseif ($ubase && $mapping && in_array($mapping['type'], array(ClassMetadataInfo::ONE_TO_ONE, ClassMetadataInfo::MANY_TO_ONE))) {
0 commit comments