Hello,
I am using Symfony Version 1.4.1 together with the
dfDoctrineGuardPlugin.
Everything worked fine out of the box.

My question: How can I make the Email field optional.
I want the users to be able to login without using their email-
address.
Also I want to create new users which don't have email addresses.
(I know this sounds strange but the customer is always right ;-) )

Yes, I know that this is currently possible right out of the box.
But out of the box the field Email_Address is not optional.

Therefore I edited the sfDoctrinePlugin/config/doctrine/schema.yml and
changed
the field:
sfGuardUser:
  Email_Address:
     notnull: true

After then I used the "symfony doctrine:build --all --and-load"
command.


Now I get an Error during the login process. The logfile says:
42      Info myUser     User is authenticated
43      Error Doctrine_Record_UnknownPropertyException  Unknown record
property / related component "all_permission_names" on "SfGuardUser"


Stack trace says:

500 | Internal Server Error | Doctrine_Record_UnknownPropertyException
Unknown record property / related component "all_permission_names" on
"SfGuardUser"
stack trace

    * at ()
      in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/
doctrine/Doctrine/Record/Filter/Standard.php line 55 ...
              52.      */
              53.     public function filterGet(Doctrine_Record
$record, $name)
              54.     {
              55.         throw new
Doctrine_Record_UnknownPropertyException(sprintf('Unknown record
property / related component "%s" on "%s"', $name,
get_class($record)));
              56.     }
              57. }


And now if I just refresh the page I am logged in.


Any Ideas?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to