Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-6024

Swift MutableDocument's collection is not set when a new document is saved

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.9
    • 3.1.x
    • iOS
    • Security Level: Public
    • None

    Description

          func testGetCollectionAfterDocIsSaved() throws {
              let col1 = try db.createCollection(name: "collection1")
              var doc = MutableDocument(id: "doc1")
              doc.setString("hello", forKey: "greeting")
              try col1.save(document: doc)
              XCTAssert(doc.collection == col1)
          }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            pasin Pasin Suriyentrakorn
            pasin Pasin Suriyentrakorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty