mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2679: SchemaTool ON DELETE CASCADE does not work with MSSQL #3357
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 (Sep 13, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user flip101:
The following queries are produced by:
vendor\doctrine\orm\tests\Doctrine\Tests\ORM\Functional\SchemaTool\DDC214Test.php
The errors:
An explanation why this is happening:
http://stackoverflow.com/questions/851625/foreign-key-constraint-may-cause-cycles-or-multiple-cascade-paths
@doctrinebot commented on GitHub (Jan 15, 2014):
Comment created by @deeky666:
This is a SQL Server limitation as it does not support multi-path cascades for foreign keys.
See here: http://allyourdatabase.blogspot.de/2006/11/multiple-cascade-paths-error-in-sql.html
Not sure what to do about this at the moment...
@doctrinebot commented on GitHub (Jan 15, 2014):
Comment created by flip101:
Yes there is nothing we can do to get this to work. But what we can do is:
A. The test can be rewritten so that it doesn't have multiple paths.
B. if not. The test has to be skipped for SQL Server.