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

All overlapping substrings matching a java regex -

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

php - Deleting/Renaming a locked file -