lpweb / sonata-admin-postgresql-case-insentive-like-bundle
此Symfony包提供了在SonataAdmin中使用PostgreSQL数据库进行不区分大小写的LIKE搜索的能力
2.0.0
2022-04-27 09:28 UTC
Requires
- php: >=7.4
- doctrine/doctrine-bundle: >=2.4
- sonata-project/admin-bundle: ~4.9
- sonata-project/doctrine-orm-admin-bundle: ~4.2
- symfony/framework-bundle: >=3.4
README
此Symfony包提供了在SonataAdmin中使用PostgreSQL数据库进行不区分大小写的LIKE搜索的能力。它使所有搜索都变为不区分大小写。
安装
将包注册到您的 config/bundles.php
<?php return [ // ... Lpweb\SonataAdminPostgreSQLCaseInsensitiveLikeBundle\LpwebSonataAdminPostgreSQLCaseInsensitiveLikeBundle::class => ['all' => true], // ... ];
现在,您在sonata admin中的所有CONTAINS搜索都将不区分大小写。