/** * {@inheritdoc} */ public function validate($value, Constraint $constraint) { if ($value instanceof MarketingList && !$value->isManual() && $this->isConnectedToMailChimp($value)) { $fieldValidatorConstraint = new ContactInformationColumnConstraint(); $fieldValidatorConstraint->type = ContactInformationFieldsProvider::CONTACT_INFORMATION_SCOPE_EMAIL; $this->fieldInformationValidator->validate($value->getSegment(), $fieldValidatorConstraint); } }