Open odino opened 13 years ago
If we already ported the project into doctrine, we should dig if there's an existing event dispatcher implementation
@nrk @davidino any comments on this?
Currently, there is no way to raise an event when you execute a query (for example for profiling and check if you should implement lazy loading and so on)
my wonder is, is there any event dispatcher we can use in doctrine
or shall we create our own (stupid) ED?
maybe @beberlei or @jwage can also help on this :)
@odino not sure but Doctrine\Common\EventManager (and related classes) should do the trick.
good catch, we'll use it
@odino we use our own logging architecture in DBAL, see Doctrine\DBAL\Logging
Thinks about triggering events in object important lifecycle phases.