Doctrine 1
  1. Doctrine 1
  2. DC-536

Duplicate CREATE TABLE entries in schema.sql when using column_inheritance

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: Inheritance
    • Labels:
      None
    • Environment:
      MySQL 5 / PHP 5.3.1 / Symfony 1.4.3 (branch) / Doctrine 1.2.1 / Mac OSX

      Description

      When creating a model involving column_inheritance the CREATE TABLE statement gets duplicated.

      The second CREATE TABLE include an index for the keyField.

      Test doctrine generated models and generated schema.sql attached.

      1. BaseInherited.class.php
        0.4 kB
        webPragmatist
      2. BaseInheriter.class.php
        1 kB
        webPragmatist
      3. kerdany_10-11-18-08-30.sql
        0.6 kB
        Hany el-Kerdany
      4. kerdany_10-11-18-08-30.yml
        0.4 kB
        Hany el-Kerdany
      5. sandbox-console.txt
        1 kB
        webPragmatist
      6. schema.sql
        0.4 kB
        webPragmatist

        Activity

        webPragmatist created issue -
        webPragmatist made changes -
        Field Original Value New Value
        Attachment sandbox-console.txt [ 10414 ]
        Roman S. Borschel made changes -
        Assignee Roman S. Borschel [ romanb ] Jonathan H. Wage [ jwage ]
        Hany el-Kerdany made changes -
        Attachment kerdany_10-11-18-08-30.yml [ 10870 ]
        Attachment kerdany_10-11-18-08-30.sql [ 10871 ]
        Hany el-Kerdany made changes -
        Comment [ illustrating the duplicate generation of CREATE TABLE statements, one extra statement for each automatically created index. ]

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            webPragmatist
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: