Fix composer to only allow DBAL 2.4 DEV and larger
DDC-2192 - Prevent using append flag in case of where and having to avoid user confusion, because this is not allowed.
DDC-1698 - Prepend autoloader to stack and fix CS
DDC-1698 - Allow autoload registration from a Configuration instance
Ensure onFlush and postFlush events are always raised
No huge if clause
DDC-2173 - Add Test for new OnFlush or PreFlush behavior and update UPGRADE.md
Merge branch 'DDC-2173'
DDC-2173 - Correct issue is about "postFlush" not "preFlush" and add test
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.
fixed indentation
Restored old way of injection to just inject it during a refresh
Added injection for initialized proxies
Added test
Fix for DDC-2203
Merge pull request #548 from nemekzg/DDC-2203

Fix for DDC-2203
DDC-2231 - Simplify test
Merge branch 'DDC-2231'
Fix DDC-1376
Merge pull request #549 from FabioBatSilva/DDC-1376

[DDC-1376] Support for order by association when using findBy