Use the Flexy/DoctrineBehaviorsBundle Sluggable trait