views:

85

answers:

1

Hello everyone,

I'm using CodeIgniter with Doctrine in a project. One of my models has the Sluggable behavior. The slug is created according to another field X when the object is saved. I was wondering if there was a way to automatically update this slug field when the X field is updated.

At the moment, if I update the X field, the slug field remains with the sluggable format of the old X field value.

Thanks in advance.

A: 

You can define "canUpdate" => true. So the slug gets updated every time you change the X field

Florian Fackler