Skip to content

Commit 529126c

Browse files
authored
Merge branch 'develop' into fix/autoreview
2 parents 015bec7 + df5ad3c commit 529126c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

user_guide_src/source/database/query_builder.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ searches.
444444
.. literalinclude:: query_builder/039.php
445445

446446
If you want to control where the wildcard (**%**) is placed, you can use
447-
an optional third argument. Your options are ``before``, ``after`` and
447+
an optional third argument. Your options are ``none``, ``before``, ``after`` and
448448
``both`` (which is the default).
449449

450450
.. literalinclude:: query_builder/040.php
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
$builder->like('title', 'match', 'none'); // Produces: WHERE `title` LIKE 'match' ESCAPE '!'
34
$builder->like('title', 'match', 'before'); // Produces: WHERE `title` LIKE '%match' ESCAPE '!'
45
$builder->like('title', 'match', 'after'); // Produces: WHERE `title` LIKE 'match%' ESCAPE '!'
56
$builder->like('title', 'match', 'both'); // Produces: WHERE `title` LIKE '%match%' ESCAPE '!'

0 commit comments

Comments
 (0)