After applying configureFilters on string field, entity validations are triggering with error messages
Thank you for this beautiful easy to use and lightweight backend management mechanism. With all appreciation to such a package, please find a bug/issue I found below. Request your guidance in this matter. Thank you so much !
Describe the bug Explain what you wanted to do and the wrong result you got. I have a form where I am listing rating and reviews of all offices in a particular district. I have applied office name filter (this is a string field in the database not an foreign key relation) which is expected to filter ratings and reviews pertaining to only the filtered/selected office. But the filtering is failing with server side entity validation annotations.
To Reproduce Steps to reproduce this error and also, the EasyAdmin version used. EasyAdmin version used - 3 As explained in the above section please.
(OPTIONAL) Additional context
If they are useful, include logs, code samples, screenshots, etc.

Looking forward to your response. Thank you once again.
Any update?
Any suggestions/ideas on how to disable any validation on filters? Or make separate group instead of Default.
Fast solution in your project is to override Symfony FormFactory. Here is an example: First, create a class
<?php
declare(strict_types=1);
namespace App\Symfony\Component\Form;
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\FiltersFormType;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\Form\FormFactory as OriginalFormFactory;
use Symfony\Component\Form\FormInterface;
class FormFactory extends OriginalFormFactory
{
public function createNamed(string $name, string $type = FormType::class, mixed $data = null, array $options = []): FormInterface
{
if ($name === 'filters' && $type === FiltersFormType::class) {
$options = array_merge($options, [
'validation_groups' => ['admin_filter'],
]);
}
return parent::createNamed($name, $type, $data, $options);
}
}
and add the following lines to services.yaml
form.factory:
class: App\Symfony\Component\Form\FormFactory
arguments:
- '@form.registry'
All filter forms will be validated in admin_filter group only!