Make doctrine light-weight for composer
Make doctrine a light-weight package based in http://getcomposer.org/doc/02-libraries.md#light-weight-distribution-packages
XSD, license and upgrade should be distributed
Update .gitattributes

Fix TYPO
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
Fix DDC-2234
test NOT EXISTS expression
keep braces
Merge pull request #543 from carlosbuenosvinos/master

Make doctrine a Light-weight distribution package in Composer
Remove README.markdown from .gitattributes
Merge pull request #551 from FabioBatSilva/DDC-2234

[DDC-2234] FUNCTION() IS NULL comparison
[DDC-2246] Fix bug with UnitOfWork#getEntityState() and entities with foreign identifier.