Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
51 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