25th/zf2-doctrine2-autoflush

There is no license information available for the latest version (dev-master) of this package.
Package info

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

pkg:composer/25th/zf2-doctrine2-autoflush

Statistics

Installs: 9 118

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2014-07-31 15:32 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License b879df9be8e629ef7e03bed32b46e497e50b58da

  • Martin Prebio <mp.woop@25th-floor.com>

This package is not auto-updated.

Last update: 2026-06-20 23:46:23 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());
	}
}