1
0
mirror of synced 2024-12-13 06:46:03 +03:00
doctrine2/lib
Stefan Kleff 151192ae37 The EntityManager was not injected in uninitialized proxys which are ObjectManagerAware.
I ran into that problem while I had two objects in the identitymap while hydrating a collection: one was new a "real" entity and the other one was an uninitialized proxy. For "real" entities the em is injected in line 2427, for new entities it is injected in 2436->2364, but for proxies this is missing. According to the comment "inject ObjectManager into just loaded proxies." the code in line 2427 should do this, but in fact it is just used if it is a "real" entity or an already initialized proxy. Moving the injection to outside of the condition in line 2411 (if the entity is an unitialized proxy) solves this.
2013-01-10 14:54:52 +01:00
..
Doctrine/ORM The EntityManager was not injected in uninitialized proxys which are ObjectManagerAware. 2013-01-10 14:54:52 +01:00
vendor use base events 2012-12-24 10:15:25 +01:00