Skip to content

Instantly share code, notes, and snippets.

Avatar

Chabot Vincent vchabot

View GitHub Profile
@dbu
dbu / CaseInsensitiveStringFilter.php
Last active Jun 9, 2021
Case insensitive filtering with sonata admin in postgres
View CaseInsensitiveStringFilter.php
<?php
namespace Liip\AcmeBundle\Filter;
use Sonata\AdminBundle\Form\Type\Filter\ChoiceType;
use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
use Sonata\DoctrineORMAdminBundle\Filter\StringFilter;
class CaseInsensitiveStringFilter extends StringFilter
{