Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-223

CloneHelper does not clone onDelete or onUpdate on ForeignKey objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • None

    Description

      CloneHelper does not clone onDelete or onUpdate.

      When CloneHelper clones a foreign key, it does not set the onDelete and onUpdate to the the created ForeignKey.

      The solution to this seems simple enough: add
      result.setOnDelete(source.getOnDelete());
      result.setOnUpdate(source.getOnUpdate());

      to the clone method for ForeignKey objects

      Attachments

        Activity

          People

            tomdz Thomas Dudziak
            frank.hampshire Frank Hampshire
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: