Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-58

Schema tool does not see difference between onDelete="NO ACTION" and onDelete="RESTRICT"

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Schema Managers
    • Labels:
      None

      Description

      If database has ON DELETE CASCADE, schema tool detects change to NO ACTION and RESCRICT.
      If database has ON DELETE RESCRICT, schema tool detects change only in case of CASCADE.
      If database has ON DELETE NO ACTION, schema tool detect change only in case of CASCADE.

      Detecting of changes is done by:
      doctrine orm:schema-tool update --dump-sql
      and
      doctrine orm:validate-schema

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jan Obrátil
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: