DocumentTrait ensureMongoId