doctrine/common — pull request #168 by Ocramius (2012-07-21 23:23:20+00:00)
Title: [WIP] - DCOM-96 - ProxyFactory logic moved to doctrine common

Proxy generation is currently handled in all the various data mappers (ORM/OXM/MongoDB ODM/CouchDB ODM/PHPCR ODM) and can be moved to common.

This is still a huge WIP and I'm still trying to define the required API.

As you can see, I made the proxy generator unaware of any object manager right now, since I think that the Proxy factory can still live in the various projects. We don't really know what the proxy needs at instantiation time (that is specific to the object manager in use), so I'm planning to add some API to allow the consumer library to modify how constructors and methods should be altered in order to achieve lazy loading or generally the functionality introduced by the proxy.