Skip to content

Commit 6d3aa85

Browse files
author
Kilian Schulte
committed
fix tests
1 parent d9f7201 commit 6d3aa85

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/src/builder/elements/table_element.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ class TableElement {
180180
if (param == otherParam) {
181181
otherColumn = selfColumn;
182182
} else {
183-
if (selfHasKey && !otherIsList && this != otherBuilder) {
183+
if (selfHasKey &&
184+
!otherIsList &&
185+
(selfColumn is! ForeignColumnElement || this != otherBuilder)) {
184186
otherColumn = ForeignColumnElement(otherParam, this, otherBuilder, state);
185187
} else {
186188
otherColumn = ReferenceColumnElement(otherParam, this, otherBuilder, state);

0 commit comments

Comments
 (0)