Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 729743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:49:57+00:00 2026-05-14T06:49:57+00:00

sfGuardUser model of sfDoctrineGuardPlugin is defined this way: sfGuardUser: actAs: [Timestampable] columns: id: type:

  • 0

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

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:49:57+00:00Added an answer on May 14, 2026 at 6:49 am

    I finally overwrite the schema with another schema that says “notnull:false”. This is possible from sf1.3.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My schema: Poster: actAs: Timestampable: ~ Sluggable: fields:[name] columns: id: type: integer(4) autoincrement: true
I have defined this entity in schema.yml Jobsearch: tableName: jobsearch columns: seeker_id: primary: true
Consider this query: $query = Doctrine::getTable('sfGuardUser') ->createQuery('u') ->innerJoin('u.Groups g') ->where('u.name = 'username') ->adnWhere('g.name <>
is this a right syntaxe of my Schema.yml ?? user_type_1 : inheritance: type: concrete
My application makes use of the sfGuardUser plugin. One of my tables has a
I'm having some trouble with the following... I have a sfGuardUser table set up
I have this code/text below is sent when a user reset the password of
I add to table sfGuardUser new fields - is_online. If user login on my
I'm using sfDoctrineGuardPlugin to manage users, groups and authentication in my Symfony application. Now
I use symfony 1.4.11. I use sfDoctrineGuardPlugin and sfDoctrineApplyPlugin.All works fine, but... In my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.