umanit / sonata-admin-postgresql-search-bundle
Better search behaviour with Sonata admin and PostgreSQL
Installs: 2 409
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 6
Forks: 1
Open Issues: 0
Type:symfony-bundle
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-11-12 21:45:41 UTC
README
This bundle overrides Sonata Admin search behaviour when using PostgreSQL. It makes all search case insensitive and unaccented.
Install
Register the bundle to your app/AppKernel.php
// ... public function registerBundles() { $bundles = [ // ... new Umanit\SonataAdminPostgreSQLSearchBundle\UmanitSonataAdminPostgreSQLSearchBundle(), ]; // ... }
Create UNACCENT extension in your database.
CREATE EXTENSION IF NOT EXISTS UNACCENT;
That was it!