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