An open API service indexing awesome lists of open source software.

https://github.com/25th-floor/zf2-doctrine2-autoflush


https://github.com/25th-floor/zf2-doctrine2-autoflush

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

ZF2 Doctrine2 AutoFlushListener
===============================

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

Just attach an instance of the AutoFlushListener to the event manager like in the following code example:

class Module
{
/**
* @param MvcEvent $e MVC Event
*/
public function onBootstrap(MvcEvent $e)
{
$eventManager = $e->getApplication()->getEventManager();
$eventManager->attachAggregate(new AutoFlushListener());
}
}