From ee812461156646dc33dffe6eaff9761977ebb7d7 Mon Sep 17 00:00:00 2001 From: KJ Date: Sat, 17 Feb 2024 15:30:02 -0400 Subject: [PATCH] Deprecate where_in method. --- src/Libs/Model.php | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/Libs/Model.php b/src/Libs/Model.php index c7d1538..89abc58 100644 --- a/src/Libs/Model.php +++ b/src/Libs/Model.php @@ -482,34 +482,6 @@ class Model { return new static(); } - /** - * Define WHERE usando IN en la sentencia SQL. - * - * @param string $column - * La columna a comparar. - * - * @param array $arr - * Arreglo con todos los valores a comparar con la columna. - * - * @param bool $in - * Define si se tienen que comprobar negativa o positivamente. - * - * @return static - */ - public static function where_in(string $column, array $arr, bool $in = true) : static { - $arrIn = []; - foreach($arr as $value) { - $arrIn[] = static::bindValue($value); - } - - if ($in) - static::$querySelect['where'] = "$column IN (".join(', ', $arrIn).")"; - else - static::$querySelect['where'] = "$column NOT IN (".join(', ', $arrIn).")"; - - return new static(); - } - /** * Define LEFT JOIN en la sentencia SQL. *