Fix DDC-2409
[DBAL-483] Pass default values to DBAL mapping layer correctly to fix default comparision bug.
Merge branch 'DBAL-483'
Merge pull request #655 from FabioBatSilva/DDC-2409

[DDC-2409] Fix merge association STATE_NEW
Simplify condition of previous commit (5cdc73e)
[DDC-2106] Fix entity as parameter value when its managed but not yet with identifier.
Merge branch 'DDC-2106'
[DDC-1984] Throw exception if passing null into UnitOfWork#lock() - which can happen when EntityManager#find() tries to lock entity that was just deleted by another process.
Merge branch 'DDC-1984'
[DDC-1998] Pass types to Connection#delete() to allow custom conversions to happen.
Merge branch 'DDC-1998'
[DDC-2136] Fix exporting to YAML and XML with assocation keys.