summaryrefslogtreecommitdiffstats
path: root/user_guide/database/active_record.html
diff options
context:
space:
mode:
authorNithin Meppurathu <admin@nitmedia.com>2011-08-21 18:05:17 +0200
committerNithin Meppurathu <admin@nitmedia.com>2011-08-21 18:05:17 +0200
commit68d1f4c3e216d8490bd1b1d397c31bd51a05ecc4 (patch)
tree375b9ca904a958b9ad4b21a505ff8dd3970485b8 /user_guide/database/active_record.html
parent54a8dcd55f15772acd0b2b39dd8edaa7f3bfcda8 (diff)
updated changelog and documentation for active record new 3rd argument option #none# to like clause
Diffstat (limited to 'user_guide/database/active_record.html')
-rw-r--r--user_guide/database/active_record.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index 3f44fcd5b..3808cb6c3 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -334,6 +334,13 @@ $this->db->or_where('id >', $id);
$this-&gt;db-&gt;like('title', 'match', 'both'); <br />
// Produces: WHERE title LIKE '%match%' </code> </li>
+If you do not want to use the wildcard (%) you can pass to the optional third argument the option 'none'.
+
+<code>
+ $this-&gt;db-&gt;like('title', 'match', 'none'); <br />
+// Produces: WHERE title LIKE 'match'
+</code>
+
<li><strong>Associative array method:</strong>
<code>