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

        Margus Sipria created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Project Doctrine DBAL [ 10040 ] Doctrine 2 - ORM [ 10032 ]
        Key DBAL-117 DDC-1151
        Affects Version/s 2.0.4 [ 10130 ]
        Affects Version/s 2.0.3 [ 10117 ]
        Affects Version/s 2.0.3 [ 10119 ]
        Affects Version/s 2.0.4 [ 10131 ]
        Component/s Schema Managers [ 10057 ]
        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
        Benjamin Eberlei made changes -
        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`")
         */
        Reference for PostgreSQL and MySQL is folloing:

        {code}
        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
        {code}

        Entity is quoted:

        {code}
        /**
         * @Entity @Table(name="`user`")
         */
        {code}
        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.5 [ 10133 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12619 ] jira-feedback [ 14851 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14851 ] jira-feedback2 [ 16715 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16715 ] jira-feedback3 [ 18968 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1151, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: