Removed scheduled extra updates, move id generation to UnitOfWork::persistNew() and throw exception when DocumentManager::createDBRef() is called on an object without an identifier.
add test failure.
Refactor UnitOfWork::doMerge() based on ORM