I'm wondering how to add Event Manager for only one or more models, not ALL
ex(from website).: this is globally, that will be invoked for ALL db actions
$dbListener = new MyDbListener(); // Listen all the database events $eventsManager->attach('db', $dbListener); $connection = new DbAdapter([...]); // Assign the eventsManager to the db adapter instance $connection->setEventsManager($eventsManager);
How to properly add Event Manager to DI only for one model database events?