I\'m creating a form in Symfony2. The form only contains one book field which allows the user to choose between a list of Books entities. I need to c
book
Books
Start by adding a setAuthor method to your constraint and then tweaking the validate method. The trick then is to determine the best place to call it.
It's not clear exactly how you are binding the validator to your book. Are you using validation.yml or doing something inside of the form?