Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (38 sloc) 1.38 KB

Doctrine ORM and domain events

As described in the documentation of the SimpleBus/DoctrineORMBridge package library it provides:

When you enable the DoctrineORMBridgeBundle in your project, both features will be automatically registered as command bus middlewares:

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new SimpleBus\SymfonyBridge\DoctrineOrmBridgeBundle()
        )
        ...
    }
    ...
}

You can optionally configure which entity manager and connection should be used:

# in config.yml

doctrine_orm_bridge:
    entity_manager: default
    connection: default