mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1117: \Doctrine\ORM\Tools\SchemaTool::dropSchema drop table it should not #1400
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 15, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user mathroc:
I got two entities class, user and authorization (see below) which tables were created using
$tools->updateSchema(Array('CMS\User'))and then$tools->updateSchema(Array('CMS\User'))(CMS\User can be use without authorization)when creating the table for CMS\Authorization, an intermediate table (cms_authorizations_roles) is create for the ManyToMany relation.
but, when I try to remove the CMS\Authorization table with
$tools->dropSchema(Array('CMS\Authorization'))it try to remove the tables cms_authorization, cms_authorizations_roles and cms_user (but failed because of foreign key to cms_user)the problem is not that it fails, it's that it shouldn't try to remove cms_user
@doctrinebot commented on GitHub (May 1, 2011):
Comment created by @beberlei:
Can you try again? I changed alot of in the dropSchema method in master and 2.0.x branches.
@doctrinebot commented on GitHub (May 8, 2011):
Comment created by mathroc:
juste update to 2.0.x, it is working :) thank you!
@doctrinebot commented on GitHub (May 8, 2011):
Issue was closed with resolution "Fixed"