25th / zf2-doctrine2-autoflush
Installs: 9 118
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 1
Open Issues: 0
pkg:composer/25th/zf2-doctrine2-autoflush
Requires
- php: >=5.4
- doctrine/doctrine-module: *
This package is not auto-updated.
Last update: 2025-10-25 21:02:50 UTC
README
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());
	}
}