Symfony: how would you reverse the "notnull:true" in a schema of a plugin?
- by user248959
Hi,
sfGuardUser model of sfDoctrineGuardPlugin is defined this way:
sfGuardUser:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
username:
type: string(128)
notnull: true
unique: true
As you can see 'username' has the feature "notnull:true". Now i want
to create a register form that is not using 'username' but the email
address of the user.
When a user wants to register, it is showed this:
Validation failed in class sfGuardUser
1 field had validation error:
* 1 validator failed on username (notnull)
Any idea?
Javi