Update manyMany array index as SS4.0 as an additional class in history.

This commit is contained in:
Brett Tasker 2017-04-26 23:12:33 +12:00
parent 8e07d4a5c6
commit 590ac4cb25
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ abstract class SearchIndex extends ViewableData
'through' => 'has_many', 'class' => $dataclass, 'otherclass' => $class, 'foreignkey' => $schema->getRemoteJoinField($className, $lookup, 'has_many')
);
} elseif ($manyMany = $schema->manyManyComponent($className, $lookup)) {
$class = $manyMany[1];
$class = $manyMany[2];
$options['multi_valued'] = true;
$options['lookup_chain'][] = array(
'call' => 'method', 'method' => $lookup,