PHPackages                             fsi/doctrine-extensions-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. fsi/doctrine-extensions-bundle

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

fsi/doctrine-extensions-bundle
==============================

FSi Doctrine extensions bundle.

2.2.0(5y ago)330.3k8[1 issues](https://github.com/fsi-open/doctrine-extensions-bundle/issues)2MITPHPPHP ^7.4|^8.0CI failing

Since Jul 9Pushed 5y ago9 watchersCompare

[ Source](https://github.com/fsi-open/doctrine-extensions-bundle)[ Packagist](https://packagist.org/packages/fsi/doctrine-extensions-bundle)[ RSS](/packages/fsi-doctrine-extensions-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (22)Versions (35)Used By (2)

FSi DoctrineExtensionsBundle
============================

[](#fsi-doctrineextensionsbundle)

This bundle provides integration with the [FSi DoctrineExtensions library.](https://github.com/fsi-open/doctrine-extensions)

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

[](#installation)

This is the master branch, which is under development. For a stable release, please use version `1.1`.

Add the bundle to `composer.json` and run `composer.phar update`.

```
{
    "require": {
        "fsi/doctrine-extensions-bundle": "2.0@dev",
    }
}
```

### Register bundles in AppKernel.php

[](#register-bundles-in-appkernelphp)

```
    // app/AppKernel.php

    public function registerBundles()
    {
        return [
            new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
            new FSi\Bundle\DoctrineExtensionsBundle\FSiDoctrineExtensionsBundle(),
        ];
    }
```

### Configure listeners

[](#configure-listeners)

Listeners are not registered by default and you need to enable them in the `app/config/config.yml` file before using.

```
# app/config/config.yml

fsi_doctrine_extensions:
    orm:
        default:
            translatable: true
            uploadable: true
```

Be sure to enable the translations in `app/config/config.yml`, even if you do not wish to use the translatable component of the bundle.

```
framework:
    translator:      { fallback: %locale% }
```

Example of an entity with an uploadable field
---------------------------------------------

[](#example-of-an-entity-with-an-uploadable-field)

```
