Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-313

When creating foreign key constraints, the AbstractPlatform class does not quote the referenced table.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.4
    • Component/s: Platforms
    • Security Level: All
    • Labels:
      None

      Description

      I have a table that is using a reserved MySQL keyword (right) and it's quoted in all the generated SQL but not in the foreign key constraint.

      When I use doctrine.php orm:schema-tool:create I get this SQL line:
      ALTER TABLE website ADD CONSTRAINT FK_476F5DE7B196EE6E FOREIGN KEY (right_id) REFERENCES right (id)

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Marc-André Joyal
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: