php - Doctrine2 Getting a Proxy when I want an entity -


when log system, the user record , save session. however, when want become else, instead of entity, proxy of entity. work fine, however, when save in session, errors out because partial class.

is there way regain entity?

doctrine returns proxy when query doesnt contain want , it's named lazy loading. if want take entity, please write queries want or use getrepository() function.


Comments

Popular posts from this blog

sql server - NHibernate incorrectly creating ManyToMany table - Cannot define PRIMARY KEY constraint on nullable column error -

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -