Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1151

Table name at reference is not quoted, even if table name in entity has quotation marks.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Reference for PostgreSQL and MySQL is folloing:

      ALTER TABLE "user_group" ADD FOREIGN KEY (user_id) REFERENCES user(id) NOT DEFERRABLE INITIALLY IMMEDIATE;
      ALTER TABLE "user_group" ADD FOREIGN KEY (group_id) REFERENCES group(id) NOT DEFERRABLE INITIALLY IMMEDIATE
      

      Entity is quoted:

      /**
       * @Entity @Table(name="`user`")
       */
      

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Moved to ORM as its a SChemaTool bug

        Show
        Benjamin Eberlei added a comment - Moved to ORM as its a SChemaTool bug
        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Margus Sipria
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: