Git Product home page Git Product logo

Comments (3)

stof avatar stof commented on May 27, 2024

@jstout24 there is still a way to set a custom slug generator in the listener: https://github.com/l3pp4rd/DoctrineExtensions/blob/doctrine2.0.x/lib/Gedmo/Sluggable/SluggableListener.php#L60

this cannot be configured currently in the bundle but it is on my todolist: https://github.com/stof/DoctrineExtensionsBundle/issues/40

from doctrineextensions.

j avatar j commented on May 27, 2024

@stof Oh nice! Yeah I can't wait to put it to use. :)

from doctrineextensions.

l3pp4rd avatar l3pp4rd commented on May 27, 2024

I recommend you to add a listener on top, or make a custom transliterator, which would have entity manager and whatever you need to make your path type slug. Your proposal is not clean and does not ensure uniqueness. In such case if you want a path type slug, soon there will be path tree strategy, which currently is developed by @markdehaan ORM and @mtotheikle ODM. You can check their local branches in case if you are interested in further development. So far I do not plan to implement anything similar for nested set, whats why there are different tree strategies

from doctrineextensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.