public function join() { $any = Arrays::any($this->_query->joinClauses, function (JoinClause $joinClause) { return Strings::equalsIgnoreCase($joinClause->type, 'RIGHT'); }); if ($any) { throw new BadMethodCallException('RIGHT JOIN is not supported in sqlite3'); } return parent::join(); }