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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -