1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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 |