views:

46

answers:

1

I have this model:

Usuario:
   actAs:
     Sluggable:
       unique: true
       fields:  [nombre_apellidos]
       canUpdate: true
   inheritance:
     extends: sfGuardUser
     type: simple
   columns:
     username:
       type: string(128)
       notnull: false
       unique: true
     nombre_apellidos: string(60)
     sexo: boolean
     fecha_nac: date
     provincia: string(60)
     localidad: string(255)
     #email_address: string(255)
     fotografia: string(255)
     avatar: string(255)
   relations:
     Usuario:
       local: user1_id
       foreign: user2_id
       refClass: AmigoUsuario
       equal: true

I expected the field called 'slug' was created after "build doctrine:build --all", but no.

Why is a field called "slug" is not created?

Symfony 1.3

A: 

Try this:

Usuario:
   actAs:
     Sluggable:
       unique: true
       name: slug
       fields:  [nombre_apellidos]
       canUpdate: true

name should be by default 'slug', guess this won't help.

praethorian
Thanks, but it didn't work.