Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-75

SchemaTool->getDropSchemaSql ignores schema name

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC4
    • Fix Version/s: 2.0-RC5
    • Component/s: Schema Managers
    • Labels:
      None
    • Environment:
      NA

      Description

      When including the schema name as part of the table name, i.e.

      /**
       * @Entity
       * @Table(name="ayso.players")
       */
      class PlayerItem
      

      SchemaTool->getDropSchemaSql returns "DROP TABLE players" instead of "DROP TABLE ayso.players"

      Furthermore, SchemaTool->getUpdateSchemaSql() always returns CREATE TABLE ayso.players followed by DROP TABLE players. It thinks there are two different tables.

      Also, the online document still indicates that @Table accepts 'schema' as an attribute.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed in DBAL master, will be included for RC5. Then linked against ORM RC2

        Show
        Benjamin Eberlei added a comment - Fixed in DBAL master, will be included for RC5. Then linked against ORM RC2
        Hide
        Benjamin Eberlei added a comment -

        Moved to DBAL, its a DBAL issue.

        Show
        Benjamin Eberlei added a comment - Moved to DBAL, its a DBAL issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Art Hundiak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: