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

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -