[DDC-1732] Unserialized non-initialized proxy classes should throw an exception when a method is called Created: 28/Mar/12 Updated: 28/Mar/12
|Project:||Doctrine 2 - ORM|
|Affects Version/s:||2.2, Git Master|
|Reporter:||Benjamin Morel||Assignee:||Benjamin Eberlei|
When we serialize entities in a session, we often have pointers to uninitialized proxies.
The problem is that if you happen to call by mistake a method on such a proxy, you're not aware that this is an uninitialized proxy, and the business methods are called, with null values for every property.
I think the proxy should throw an exception in that case.