orientdb-odm icon indicating copy to clipboard operation
orientdb-odm copied to clipboard

Provide object lifecycle callbacks

Open odino opened this issue 14 years ago • 6 comments

Thinks about triggering events in object important lifecycle phases.

odino avatar Jun 11 '11 10:06 odino

If we already ported the project into doctrine, we should dig if there's an existing event dispatcher implementation

odino avatar Apr 20 '12 21:04 odino

@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?

odino avatar Jan 08 '13 07:01 odino

maybe @beberlei or @jwage can also help on this :)

odino avatar Jan 08 '13 07:01 odino

@odino not sure but Doctrine\Common\EventManager (and related classes) should do the trick.

nrk avatar Jan 08 '13 09:01 nrk

good catch, we'll use it

odino avatar Jan 08 '13 09:01 odino

@odino we use our own logging architecture in DBAL, see Doctrine\DBAL\Logging

beberlei avatar Jan 08 '13 10:01 beberlei