protected function parseJoins(&$joins, &$query) { $query = preg_replace_callback($this->getColumnChainsRegxp(), function ($match) use(&$joins) { return $this->parseJoinsCb($joins, $match); }, $query); }