On 26.10.2010, at 15:54, Lukas Kahwe Smith wrote: > Hi, > > Again using the DoctrineUserBundle, when I try to create a new user without > entering anything I get something like the following: > http://screencast.com/t/Hzyb1WZ9Zb > > Note that I have extended the base model to include a first- and lastname. > Note that the error for the email is repeated 3 times. Apparently once for > every validation rule: > http://github.com/knplabs/DoctrineUserBundle/blob/master/Model/User.php > > But oddly enough there is no error message for the password: > http://github.com/knplabs/DoctrineUserBundle/blob/master/Form/UserForm.php > > Now if I enter a single letter into the field I again get 3 times the same > message, but this some a different one: > http://screencast.com/t/CnS4gw3N
All you need to do in order to reproduce the issue is setup the DoctrineUserBundle [1] and call the "new" action in the UserController. For the required custom User Entity you can use something like: <?xml version="1.0" encoding="UTF-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Application\JoizHardcoreBundle\Entity\User" table="doctrine_user_user" repository-class="Bundle\DoctrineUserBundle\Entity\UserRepository"> </entity> </doctrine-mapping> In your routing.yaml you need to do: _DoctrineUserBundleUser: resource: DoctrineUserBundle/Resources/config/routing/user.xml prefix: user And then you should be able to load up: http://my.domain/index_dev.php/user/new regards, Lukas Kahwe Smith [email protected] [1] http://github.com/knplabs/DoctrineUserBundle -- 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 developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
