Commit 96fb1776 authored by jeroendedauw's avatar jeroendedauw

Change weird way of adding an entry to SplObjectStorage

parent 2f002700
...@@ -80,8 +80,7 @@ class DropSchemaSqlCollector extends AbstractVisitor ...@@ -80,8 +80,7 @@ class DropSchemaSqlCollector extends AbstractVisitor
throw SchemaException::namedForeignKeyRequired($localTable, $fkConstraint); throw SchemaException::namedForeignKeyRequired($localTable, $fkConstraint);
} }
$this->constraints->attach($fkConstraint); $this->constraints->attach($fkConstraint, $localTable);
$this->constraints[$fkConstraint] = $localTable;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment