doctrine / orientdb-odm

A set of PHP libraries in order to use OrientDB from PHP
http://odino.org/blog/categories/orientdb/
MIT License
155 stars 54 forks source link

Provide object lifecycle callbacks #51

Open odino opened 13 years ago

odino commented 13 years ago

Thinks about triggering events in object important lifecycle phases.

odino commented 12 years ago

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

odino commented 11 years ago

@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 commented 11 years ago

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

nrk commented 11 years ago

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

odino commented 11 years ago

good catch, we'll use it

beberlei commented 11 years ago

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