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

Reference type does not work correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Won't Do
    • Affects Version/s: 5.2.0
    • Fix Version/s: None
    • Component/s: (Inactive) Enginio
    • Labels:
      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
          7 kB
          Bin Gong
        2. Capture2.PNG
          14 kB
          Bin Gong
        3. Untitled.png
          16 kB
          Bin Gong
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            frederik Frederik Gladhorn
            Reporter:
            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