Skip to content

DBAL-695: [GH-437] Don't generate foreign keys for MySQL tables that are not InnoDB #1917

doctrinebot opened this Issue Nov 30, 2013 · 3 comments

2 participants


Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of dunglas:

Url: #437


This PR adds a supportsForeignKeyConstraintBetween($table1, $table2) method to Platform allowing to check if foreign key between two tables are supported (e.g. on MySQL: InnoDB to InnoDB FK is OK, Memory to InnoFB is not).

The MySQL implementation is also provided and CreateSchemaSqlCollector has been adapted to use this feature.

This PR is related to doctrine/doctrine2#865


Comment created by @doctrinebot:

A related Github Pull-Request [GH-865] was closed:


Issue was closed with resolution "Won't Fix"


Comment created by @doctrinebot:

A related Github Pull-Request [GH-437] was closed:

@doctrinebot doctrinebot added the Bug label Dec 7, 2015
@beberlei beberlei was assigned by doctrinebot Dec 7, 2015
@doctrinebot doctrinebot closed this Dec 7, 2015
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.