Skip to content

Commit

Permalink
Merge pull request #7937 from doctrine/GH-7930-SqliteForeignKeys
Browse files Browse the repository at this point in the history
Revert SchemaTool change to check for foreign key support
  • Loading branch information
lcobucci authored Dec 16, 2019
2 parents c9e41d0 + cfd6fad commit 5873242
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 65 deletions.
5 changes: 0 additions & 5 deletions lib/Doctrine/ORM/Tools/SchemaTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,11 +709,6 @@ private function gatherRelationJoinColumns(
}

$compositeName = $theJoinTable->getName().'.'.implode('', $localColumns);

if (! $this->platform->supportsForeignKeyConstraints()) {
return;
}

if (isset($addedFks[$compositeName])
&& ($foreignTableName != $addedFks[$compositeName]['foreignTableName']
|| 0 < count(array_diff($foreignColumns, $addedFks[$compositeName]['foreignColumns'])))
Expand Down
3 changes: 0 additions & 3 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2138Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ class DDC2138Test extends OrmFunctionalTestCase
public function testForeignKeyOnSTIWithMultipleMapping()
{
$em = $this->_em;
if (! $em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
$this->markTestSkipped('Platform does not support foreign keys.');
}
$schemaTool = new SchemaTool($em);

$classes = [
Expand Down
57 changes: 0 additions & 57 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/GH7841Test.php

This file was deleted.

0 comments on commit 5873242

Please sign in to comment.