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

Vertical inheritance: record still inserted into parent db table when child validation fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.M3, 4.0.B1
    • Fix Version/s: Undefined future
    • Component/s: Core Library
    • Labels:
      None

      Description

      When using vertical inheritance, if a child record has a mandatory relationship which is not set, commit will still go through without any errors. However, in database it will create only a record in the parent table without a corresponding child record.

      Attaching patch with a unit test demonstrating the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ntimofeev Nikita Timofeev
                Reporter:
                demitri Dzmitry Kazimirchyk
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: