From 7904bc2629ed4452843b6e41b51af28cf12edd43 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 14 Nov 2017 11:27:17 +0100 Subject: [PATCH] added note to QueryInterface::where() --- framework/db/QueryInterface.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/db/QueryInterface.php b/framework/db/QueryInterface.php index 0192543f10..df57ad3838 100644 --- a/framework/db/QueryInterface.php +++ b/framework/db/QueryInterface.php @@ -153,6 +153,8 @@ interface QueryInterface * - Additionally you can specify arbitrary operators as follows: A condition of `['>=', 'id', 10]` will result in the * following SQL expression: `id >= 10`. * + * **Note that this method will override any existing WHERE condition. You might want to use [[andWhere()]] or [[orWhere()]] instead.** + * * @param array $condition the conditions that should be put in the WHERE part. * @return $this the query object itself * @see andWhere()