Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2897

SchemaTool->update() deletes all tables that not belongs to the schema

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: Tools
    • Labels:
      None
    • Environment:
      linux, apache, mysql, php, only tested with the zf2-doctrine modules

      Description

      $tool = new \Doctrine\ORM\Tools\SchemaTool($em);
      $tool->updateSchema($em->getMetadataFactory()->getAllMetadata());

      => all Tables that not belong to the schema are gone. If you use the commandline tool for update, tables that not belong to the schema are not touched.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            do.ev.
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: