diff --git a/src/Libs/Model.php b/src/Libs/Model.php index bfe1aec..2ed67e7 100644 --- a/src/Libs/Model.php +++ b/src/Libs/Model.php @@ -884,17 +884,8 @@ class Model */ public static function crossJoin( string $table, - string $columnA, - string $operatorOrColumnB, - ?string $columnB = null ): static { - if (is_null($columnB)) { - $columnB = $operatorOrColumnB; - $operatorOrColumnB = '='; - } - - static::$querySelect['crossJoin'] .= ' CROSS JOIN ' . $table . ' ON ' . "$columnA$operatorOrColumnB$columnB"; - + static::$querySelect['crossJoin'] .= ' CROSS JOIN ' . $table; return new static(); }