diff --git a/src/Translator/Mysql.php b/src/Translator/Mysql.php index 1684b87..ff324c8 100644 --- a/src/Translator/Mysql.php +++ b/src/Translator/Mysql.php @@ -579,8 +579,9 @@ protected function translateJoins() reset($subAttributes['ons']); $subAttributes['ons'][key($subAttributes['ons'])][0] = ''; - foreach($subAttributes['ons'] as list($type, $localKey, $operator, $referenceKey)) + foreach($subAttributes['ons'] as $on) { + list($type, $localKey, $operator, $referenceKey) = $on; $joinConditions .= ' ' . $type . ' ' . $this->escape($localKey) . ' ' . $operator . ' ' . $this->escape($referenceKey); }