From eeccaf6a57d2877f30414a7724816067cc662805 Mon Sep 17 00:00:00 2001 From: Vlastislav Dohnal Date: Sat, 17 Jun 2017 11:49:25 +0200 Subject: [PATCH] * Fix error in converting foreign key values to integers --- src/Database/Table/Selection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database/Table/Selection.php b/src/Database/Table/Selection.php index 3914e343d..6f1d25b8a 100644 --- a/src/Database/Table/Selection.php +++ b/src/Database/Table/Selection.php @@ -905,12 +905,12 @@ public function getReferencedTable(ActiveRow $row, ?string $table, string $colum } $key = $row[$column]; - $cacheKeys[$key] = TRUE; + $cacheKeys[] = $key; } if ($cacheKeys) { $selection = $this->createSelectionInstance($table); - $selection->where($selection->getPrimary(), array_keys($cacheKeys)); + $selection->where($selection->getPrimary(), $cacheKeys); } else { $selection = []; }