DDC-2897: SchemaTool->update() deletes all tables that not belongs to the schema #3611

Open
opened 2026-01-22 14:23:42 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 9, 2014).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user doev:

$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.

Originally created by @doctrinebot on GitHub (Jan 9, 2014). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user doev: $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.
admin added the Bug label 2026-01-22 14:23:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3611