Skip to content

Commit

Permalink
Fix BETWEEN expression instantiation example
Browse files Browse the repository at this point in the history
The indicated syntax didn't exist.
  • Loading branch information
zachee54 committed Jul 11, 2023
1 parent a22ae82 commit 2f37874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion en/orm/query-builder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ following::
$sizing = $query->newExpr()->case()
->when(['population <' => 100000])
->then('SMALL')
->when($q->between('population', 100000, 999000))
->when($query->newExpr()->between('population', 100000, 999000))
->then('MEDIUM')
->when(['population >=' => 999001])
->then('LARGE');
Expand Down
2 changes: 1 addition & 1 deletion fr/orm/query-builder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ pourrions le faire ainsi::
$sizing = $query->newExpr()->case()
->when(['population <' => 100000])
->then('PETITE')
->when($q->between('population', 100000, 999000))
->when($query->newExpr()->between('population', 100000, 999000))
->then('MOYENNE')
->when(['population >=' => 999001])
->then('GRANDE');
Expand Down

0 comments on commit 2f37874

Please sign in to comment.