Skip to content


DDC-629: SchemaTool's method dropSchema, drops all classes instead of those specified in $classes argument #5138

doctrinebot opened this Issue · 4 comments

2 participants


Jira issue originally created by user sammysnake:

$classes = array(

// Delete databases
$tool = new \Doctrine\ORM\Tools\SchemaTool($this->_em);

Drops just schema specified by $classes

Drops all schema, not just that specified in $classes


Comment created by sammysnake:

SchemaTool.php method getDropSchemaSql(array $classes)

doesn't create $schema from $classes argument
$schema = $sm->createSchema();

Additionally in AbstractSchemaManager.php method createSchema() ..

doesn't support creating schema from argument ($classes)


Comment created by @beberlei:

yeah i think this is a non-issue, but requires better documentation and a disctiction of th etwo different approaches to deleting tables through totally different method names. I will be on this issue :)


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0-RC1 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.