https://github.com/25th-floor/zf2-doctrine2-autoflush
https://github.com/25th-floor/zf2-doctrine2-autoflush
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/25th-floor/zf2-doctrine2-autoflush
- Owner: 25th-floor
- Created: 2014-02-26T19:14:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-31T15:36:40.000Z (almost 11 years ago)
- Last Synced: 2025-01-30T02:41:29.066Z (4 months ago)
- Language: PHP
- Size: 156 KB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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());
}
}