1
0
mirror of synced 2024-12-14 15:16:04 +03:00

convention fixes #2

This commit is contained in:
Rivaros 2012-02-13 16:39:46 +02:00 committed by Benjamin Eberlei
parent df82b6060b
commit b346f1901a

View File

@ -193,7 +193,6 @@ class DatabaseDriver implements Driver
foreach ($columns as $column) { foreach ($columns as $column) {
$fieldMapping = array(); $fieldMapping = array();
if (in_array($column->getName(), $allForeignKeyColumns)) { if (in_array($column->getName(), $allForeignKeyColumns)) {
continue; continue;
} else if ($primaryKeyColumns && in_array($column->getName(), $primaryKeyColumns)) { } else if ($primaryKeyColumns && in_array($column->getName(), $primaryKeyColumns)) {
@ -312,7 +311,7 @@ class DatabaseDriver implements Driver
} }
//Here we need to check if $cols are the same as $primaryKeyColums //Here we need to check if $cols are the same as $primaryKeyColums
if(!array_diff($cols,$primaryKeyColumns)) { if (!array_diff($cols,$primaryKeyColumns)) {
$metadata->mapOneToOne($associationMapping); $metadata->mapOneToOne($associationMapping);
} }
else { else {