-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sluggable] getSimilarSlugs with locale context #2530
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This does not require to set $q->setHint(
Query::HINT_CUSTOM_OUTPUT_WALKER,
\Gedmo\Translatable\Query\TreeWalker\TranslationWalker::class
); will work. This would fix #100 |
…oking for similar slugs Force translation walker to look for slug translations to avoid duplicated slugs. --- Fixes doctrine-extensions#100, fixes doctrine-extensions#2530
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
…oking for similar slugs Force translation walker to look for slug translations to avoid duplicated slugs. --- Fixes doctrine-extensions#100, fixes doctrine-extensions#2530
…ng for similar slugs (#2620) * fix(Sluggable): Use TranslationWalker for Translatable object when looking for similar slugs Force translation walker to look for slug translations to avoid duplicated slugs. --- Fixes #100, fixes #2530 * chore: Added CHANGELOG notice * chore: Missing issue references to CHANGELOG entry * chore: Added Sluggable/Issue/Issue100Test * chore: Rewrite changelog entry and phpstan fix * feat(Sluggable): Added new option `uniqueOverTranslations` to enable uniqueness across translated slug as well * chore: Move `$uniqueOverTranslations` new argument at the end for BC * chore: Missing `uniqueOverTranslations` option in legacy annotation * docs: Moved Changelog entry to Unreleased section * Update Changelog * Fix PHPStan types * Fix tests * Make mandatory keys in SlugConfiguration * Add a check for YAML driver --------- Co-authored-by: Fran Moreno <[email protected]>
When using sluggable with translations the getSimilarSlugs method must use the entity object locale:
example in Gedmo\Sluggable\Mapping\Event\Adapter\ORM
The text was updated successfully, but these errors were encountered: