Symfony4 slugifier un article

https://symfony.com/doc/master/bundles/StofDoctrineExtensionsBundle/index.html

composer require stof/doctrine-extensions-bundle
//entity/mon_entity.php
use Gedmo\Mapping\Annotation as Gedmo;


/**
 * @Gedmo\Slug(fields={"title", "code"})
 * @ORM\Column(length=128, unique=true)
 */
private $slug;


php bin/console make:entity --regenerate

Laissez votre réponse