umanit / sonata-admin-postgresql-search-bundle
在 Sonata admin 和 PostgreSQL 上的更优搜索行为
0.1
2018-06-15 12:23 UTC
Requires
- php: >=5.6
- doctrine/doctrine-bundle: ~1.6
- sonata-project/admin-bundle: ~3.9
- sonata-project/doctrine-orm-admin-bundle: ~3.1
- symfony/framework-bundle: >=2.3
This package is auto-updated.
Last update: 2024-09-12 21:16:25 UTC
README
此扩展在 PostgreSQL 使用时覆盖了 Sonata Admin 的搜索行为。它使所有搜索都 不区分大小写 和 无重音。
安装
将扩展注册到您的 app/AppKernel.php
// ... public function registerBundles() { $bundles = [ // ... new Umanit\SonataAdminPostgreSQLSearchBundle\UmanitSonataAdminPostgreSQLSearchBundle(), ]; // ... }
在您的数据库中创建 UNACCENT 扩展。
CREATE EXTENSION IF NOT EXISTS UNACCENT;
就这样了!