Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36422

Reference type does not work correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.2.0
    • (Inactive) Enginio
    • None

    Description

      1. Define a reference property
      2. Define the reference as
      "com123":

      { "$type": "ref", "$id": "xxxxx(object id)", "$objectType": "objects.RefCom" }

      3. Save
      4. Can see the saved results
      5. Refresh, saved contents lost

      In the documentation, we can see a embedded object type, but from my understandings, it should be the ref type, please correct me if i'm wrong
      "
      Embedded Objects

      When the property holds an embedded object, you can “reach into” the embedded object using dot notation.

      In the following example, the query uses the dot notation to match all objects where, value of the producer property is an embedded object with its company property set to 'ABC123':

      {
      "producer.company": "ABC123"
      }
      "

      Attachments

        1. Capture1.PNG
          Capture1.PNG
          7 kB
        2. Capture2.PNG
          Capture2.PNG
          14 kB
        3. Untitled.png
          Untitled.png
          16 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            frederik Frederik Gladhorn
            bigong Bin Gong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes