This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Slug is chaging after each edit

Discussion relating to version 1.2.x stable

Slug is chaging after each edit

by mkentgen » Fri Nov 11, 2011 4:26 pm

I have the following doctrine table:

Code: Select all
News:
  actAs:
    Sluggable:
      fields: [ title ]
      canUpdate: false
    Timestampable: ~
  columns:
    title: { type: string(255), notnull: true }
    content:   { type: clob, notnull: true }
    role: { type: integer(1), default: NULL }
    published: { type: datetime }


I added the canUpdate: false, it doesn't help. Whenever I change the title, the slug changes accordingly. As I understand it, this should not happen. Any ideas how to fix it? Thanks!
mkentgen
Junior Member
 
Posts: 1
Joined: Fri Nov 11, 2011 4:23 pm