1
0
mirror of synced 2025-01-18 14:31:40 +03:00

Fixing issue with reverse engineering databases.

This commit is contained in:
Jonathan H. Wage 2010-05-14 12:38:42 -04:00
parent 464accecfe
commit 5a92c0b51e

View File

@ -78,13 +78,6 @@ class DatabaseDriver implements Driver
$ids = array();
$fieldMappings = array();
foreach ($columns as $column) {
// Skip columns that are foreign keys
foreach ($foreignKeys as $foreignKey) {
if (in_array(strtolower($column->getName()), array_map('strtolower', $foreignKey->getColumns()))) {
continue(2);
}
}
$fieldMapping = array();
if (isset($indexes['primary']) && in_array($column->getName(), $indexes['primary']->getColumns())) {
$fieldMapping['id'] = true;