Devise\Search\SearchableModelTrait::makeJoins PHP Method

makeJoins() protected method

Adds the join sql to the query
protected makeJoins ( &$query )
$query
    protected function makeJoins(&$query)
    {
        foreach ($this->getJoins() as $table => $keys) {
            $query->join($table, $keys[0], '=', $keys[1]);
        }
    }