Created
January 20, 2016 17:27
-
-
Save Raistlfiren/214392d6eb9e788399c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Entity file | |
* @UniqueEntity(fields="email", message="Sorry, this email address is already in use.", groups={"registration"}) | |
//Form file | |
public function configureOptions(OptionsResolver $resolver) | |
{ | |
$resolver->setDefaults(array( | |
'data_class' => 'FA\BackEnd\UserBundle\Entity\User', | |
'validation_groups' => ['registration'] | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment