From 0bfcff6b42752bfa30c980dfd73a6440caa941d7 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Tue, 6 Sep 2016 05:59:24 +0200 Subject: [PATCH] Added new method for add where sql statement and after make query operation --- src/Webmodel.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Webmodel.php b/src/Webmodel.php index e117be5..c98603c 100644 --- a/src/Webmodel.php +++ b/src/Webmodel.php @@ -1602,6 +1602,15 @@ class Webmodel { } + public function where($where_sql) + { + + $this->set_conditions($where_sql); + + return $this; + + } + /** * A helper function for obtain an associative array from a result of $this->select *