-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage-specific validation not loaded #1498
Comments
It seems this might be related to a recent change in the way Symfony loads validation: symfony/symfony@9b204c9#diff-0e793081ceb720201745c982a568903fL678 |
Ok, so this only affects Symfony 2.5 and above. Is this something this FOS bundle should support? Happy to contribute the fix.. |
I think so yes, but we should detect if the Kernel version is >=2.5 to not break support for older versions. |
This is fixed in the 1.3.x branch but still needs to be fixed in master. |
I'm currently working on the merge of 1.3.x into master |
Cool, is it possible to get a new 1.3.x release? |
done |
Nice @kbond. Thx for fixing. Have a great weekend. |
Hey guys, I checked out the lastest version of the bundle but still the validation is not loading for me. Am I missing something? |
Hmm, I am seeing this as well.. Not sure as to the problem. The validation config is properly being added to |
see #1511 |
Username/Email unique constraint failed since I Updated to symfony 2.5, doctrine was throwing the error instead of the form, and @kbond's solution worked for me. |
@kbond Yes, I confirm your suggestion fixed the issue for me. Thanks! |
I'm probably overlooking something, but it seems that the storage-specific validation rules are not being loaded. Specifically
Resources/config/validation/orm.xml
.I see that this validation pass here should be responsible for loading it, but in the highlighted line it checks for a container parameter which does not seem to exist, and I cannot find where it would be set..
FOSUserBundle/DependencyInjection/Compiler/ValidationPass.php
Line 39 in 6fc28e4
In my application config.yml I have:
Thank you for any help.
The text was updated successfully, but these errors were encountered: