i have a community, where users can make their own topics, also in international languages like hebrew or arabic
i have the "name" field of the topic, and i want to generate slugs out of it
now i have tested it with arabic, using the stofdoctrineBundle and Doctrine extensions
i set up the slug like this
/**
* @Gedmo\Slug(fields={"name"})
* @ORM\Column(length=255, unique=true, nullable=false)
*/
private $slug;
and when i try to make a new topic with arabic, say this string "علي قرا", doctrine sluggable generated the following slug: ly-qr
so my goal is to have complete URL like this
http://www.mysite.com/علي-قرا
for SEO reasons.
The default behavior of the slugifier in gedmo's doctrine extensions is to convert all characters to ASCII.
If you don't want this behavior, you will have to create either your own handler and/or your own transliterator method.
The docs here explain well how to do it.