PHPackages                             wiim23/custom-index-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. wiim23/custom-index-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

wiim23/custom-index-bundle
==========================

Annotation and command for control entity custom indexes

v0.2.6(7y ago)042MITPHPPHP &gt;=7.1.3

Since Jun 9Pushed 7y agoCompare

[ Source](https://github.com/wiim23/custom-index-bundle)[ Packagist](https://packagist.org/packages/wiim23/custom-index-bundle)[ RSS](/packages/wiim23-custom-index-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (13)Used By (0)

CustomIndexBundle
=================

[](#customindexbundle)

The CustomIndexBundle allows create index for doctrine entities using annotation with entity definition and console command.

Installation
------------

[](#installation)

CustomIndexBundle requires Symfony 2.1 or higher. Now work only with PostgreSQL.

Require the bundle in your `composer.json` file:

```
{
   "require": {
       "intaro/custom-index-bundle": "~0.2.2",
   }
}
```

Install the bundle:

```
$ composer update intaro/custom-index-bundle

```

Register the bundle in `AppKernel`:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        //...

        new Intaro\CustomIndexBundle\IntaroCustomIndexBundle(),
    );

    //...
}
```

If your project have many schemas in single database and command must generate custom indexes only for one schema then add in your `config.yml`:

```
intaro_custom_index:
    search_in_all_schemas: false
```

Default value of `search_in_all_schemas` is `true`. If you have different entities in different schemas and you need to update custom indexes in all schemas at once then you must set `search_in_all_schemas` to `true` or omit this config. If you have database with only public schema then `search_in_all_schemas` value doesn't matter.

Usage
-----

[](#usage)

1. Add annotation in your entity

```
