What is a Proxy in Doctrine 2?
I just finished reading all the Doctrine 2 documentation, I started my own sandbox, I understood most of the principes, but there is still a question and I couldn't find any complete explanation in the doc. What are Proxy classes? When should I use them over entities? As far as I understand, proxy classes add a layer to let you add some other features to your entities, but why use a proxy instead of implementing the methods themselves in the entity class? Crozin Proxy objects are used whenever your query doesn't return all data required to create an entity. Imagine following scenario: @Entity