convention fixes #2
This commit is contained in:
parent
df82b6060b
commit
b346f1901a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user