Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AnnotationException: [Semantical Error] The annotation "@SymfonyComponentValidatorConstraintsPassword" in property NMSPMyBundleEntityUser::$password does not exist, or could not be auto-loaded.
- //annotation declaration:
- /**
- * @ORMColumn(type="string", length="32", unique="true")
- *
- * @AssertMinLength(3)
- * @AssertPassword2()
- */
- protected $password;
- //load files with the following in the code
- services:
- validator.password:
- class: NMSPMyBundleValidatorPasswordValidator
- tags:
- - { name: validator.constraint_validator, alias: password }
- use NMSPMyBundleValidator as NMSPAssert;
- @NMSPAssertPassword()
Add Comment
Please, Sign In to add comment