protected function validate() { $this->mapper->runValidation(function (ValidatorInterface $validatorInterface) { return $validatorInterface->validatePropertyValue($this->wrappedEntity->getEntity(), $this->component->name, $this->collection); }, $this->component instanceof BaseControl ? $this->component : $this->component->getForm()); }