public function __construct($form, DataContext $data) { $this->form = $form; $this->data = $data; $this->chainValidation = new ChainedValidation($data); $this->form->prepareValidation($this->data, $this); }
/** * bind the given objet or array with the data of the form context * @param $entity * @param array $whiteList */ public function bind(&$entity, $whiteList = null) { $this->form->bind($entity, $this->getData()->getDataCopy(), $whiteList); }