Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2309

ObjEntity > Relationship: 'Target' is not updated after changing the same value in DbEntity > Relationship

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.B1
    • 4.0.B1
    • Modeler
    • None
    • Win7 x64

    Description

      Steps:
      1. Open any valid project with created DbEntities, ObjEntities, Relationships
      2. Select DbEntity (DbEntity=Artist in my case)
      3. Change 'Target' in Relationships table to another value (from Painting to Gallery in my case)
      4. Go to appropriate ObjEntity (ObjEntity=Artist in my case) and see 'Target' in ObjRelationship table
      -> Old value is displayed (Target=Painting in my case)

      5. Click on 'Sinc ObjEntity with DbEntity' button
      -> Old value is still displayed (Target=Painting in my case)
      see1.png

      6. Save project (ignore validation problems) and close Modeler
      -> xml shows different target values for db-relationship and obj-relationship:

      <db-relationship name="a_p" source="Artist" target="Gallery" toMany="true" /> 
      <obj-relationship name="a_p" source="Artist" target="Painting" deleteRule="Deny" db-relationship-path="a_p" />

      7. Open the project in Modeler again and check the value in 'Target' column for appropriate ObjEntity (ObjEntity=Artist in my case)
      -> Old value is still displayed (Target=Painting in my case)

      8. Now put the cursor into 'DbRelationship Path' cell and then into 'Target' cell
      -> 'Target' value is changed to new value (from Painting to Gallery in my case) - It's strange behavior
      -> Note that Save button did not become active
      see 2.png

      9. Do any changes in project to make Save button active and save project
      -> Now xml shows the same target values for db-relationship and obj-relationship (target=Gallery in my case):

      <db-relationship name="a_p" source="Artist" target="Gallery" toMany="true" /> 
      <obj-relationship name="a_p" source="Artist" target="Gallery" deleteRule="Deny" db-relationship-path="a_p" />

      Expected: 'Target' value in ObjRelationship is changed immediately after update 'Target' in DbRelationship (or after pressing on 'Sinc ObjEntity with DbEntity' button)

      Attachments

        1. 2.png
          87 kB
          Yury Harachka
        2. 1.png
          133 kB
          Yury Harachka

        Issue Links

          Activity

            People

              ntimofeev Nikita Timofeev
              yharachka Yury Harachka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: