From 38c88094b9759f57704a4fcae6073b27c8f7a828 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Thu, 19 Jul 2012 13:34:23 +1200 Subject: [PATCH] FIX Use addInnerJoin instead of innerJoin to fix deprec error --- code/search/SearchIndex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/search/SearchIndex.php b/code/search/SearchIndex.php index 98fab38..81f5993 100644 --- a/code/search/SearchIndex.php +++ b/code/search/SearchIndex.php @@ -444,7 +444,7 @@ abstract class SearchIndex extends ViewableData { } else if ($step['through'] == 'has_many') { $sql = new SQLQuery('"'.$step['class'].'"."ID"', $step['class'], '"'.$step['otherclass'].'"."ID" IN ('.implode(',', $ids).')'); - $sql->innerJoin($step['otherclass'], '"'.$step['class'].'"."ID" = "'.$step['otherclass'].'"."'.$step['foreignkey'].'"'); + $sql->addInnerJoin($step['otherclass'], '"'.$step['class'].'"."ID" = "'.$step['otherclass'].'"."'.$step['foreignkey'].'"'); singleton($step['class'])->extend('augmentSQL', $sql); $ids = $sql->execute()->column();