I'm building a form for array data that embeds an entity type like this:
$data = array('message' => '', 'book' => new Book());
$formBld = $this->createFormBuilder($data);
$formBld->add('book', new BookType(), array(
'label' => false,
'constraints' => new Symfony\Component\Validator\Constraints\Valid()
))
->add('message', 'textarea')
->add('send', 'submit')
;
The Book entity contains validation constraints, but they are never called. What is missing/wrong?
Bookentity constraints?