From b2672ad92fe0e90cfea1b7218768a9bf50d26098 Mon Sep 17 00:00:00 2001 From: kj Date: Mon, 27 Oct 2025 10:24:25 -0300 Subject: [PATCH] fix(model): Remove ON clause from cross join --- src/Libs/Model.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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(); }