getGroupValues($context, $groupName)); $searchValues = explode(',', str_replace(' ', '', $value)); if (count(array_intersect($searchValues, $allowedValues)) !== count($searchValues)) { $exception = new ErrorValidationException( "Error: %s doesn't contain the allowed values", [ $column, ] ); $exception->setColumn($column); throw $exception; } } }