Generating doctrine slugs manually

后端 未结 3 562
独厮守ぢ
独厮守ぢ 2021-01-20 05:27

I\'m using sluggable behavior in my Symfony2 project, but now I would like to make many slugs for one page, based on different texts (current title, old title(s), users text

3条回答
  •  青春惊慌失措
    2021-01-20 05:43

    Find the doctrine code for generating a slug here: l3pp4rd/DoctrineExtensions. Playing around with that class could do as you desire but you will probable need to create your own service to implement an easy use as you want. See the Service Container section of the docs for more details about services.

提交回复
热议问题