Cayenne
  1. Cayenne
  2. CAY-1386

Removing from flattened relationship without "reverse" always fails

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.0RC2
    • Fix Version/s: Undefined future
    • Component/s: None
    • Labels:
      None

      Description

      Imagine there is many-many rel between tables A and B using join table C (no ObjEntity). There is flattened rel bArray from A to B with delete rule cascade (if that matters) but no reverse.
      Adding to such rel goes perfect:
      INSERT INTO B
      INSERT INTO C

      But deleting B does
      DELETE FROM B
      which obviously fails.

      Haven't digged into code much, but it seems arcDeleted() isn't invoked for B and therefore relationship isn't recognized as flattened.
      Since reverse rels aren't mandatory in Cayenne, this should work

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrey Razumovsky
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development