Doctrine 2 - ORM

[GH-315] [WIP] Allowing proxies to be passed to ORM public API