Skip to content

Commit 2aa2de7

Browse files
committed
Changelog and fix doc
1 parent d4fe989 commit 2aa2de7

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

user_guide_src/source/changelogs/v4.1.6.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Enhancements
3333
************
3434

3535
- Database pane on debug toolbar now displays location where Query was called from. Also displays full backtrace.
36+
- :ref:`Subqueries<query-builder-where-subquery>` in QueryBuilder can now be an instance of the BaseBuilder class.
3637

3738
Changes
3839
*******
@@ -43,6 +44,7 @@ Deprecations
4344
************
4445

4546
- ``Seeder::faker()`` and ``Seeder::$faker`` are deprecated.
47+
- ``BaseBuilder::cleanClone()`` is deprecated.
4648

4749
Sending Cookies
4850
===============

user_guide_src/source/database/query_builder.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ methods:
304304
$where = "name={$name} AND status='boss' OR status='active'";
305305
$builder->where($where);
306306

307+
.. _query-builder-where-subquery:
307308
#. **Subqueries:**
308309

309310
::
@@ -318,10 +319,8 @@ methods:
318319

319320
// With builder directly
320321
$subQuery = $db->table('orders')->select('MAX(advance_amount)', false)->where('id >', 2)
321-
322322
$builder->where('advance_amount <', $subQuery);
323323

324-
325324
**$builder->orWhere()**
326325

327326
This function is identical to the one above, except that multiple
@@ -350,7 +349,6 @@ You can use subqueries instead of an array of values::
350349

351350
// With builder directly
352351
$subQuery = $db->table('users_jobs')->select('job_id')->where('user_id', 3);
353-
354352
$builder->whereIn('id', $subQuery);
355353

356354
**$builder->orWhereIn()**
@@ -373,7 +371,6 @@ You can use subqueries instead of an array of values::
373371

374372
// With builder directly
375373
$subQuery = $db->table('users_jobs')->select('job_id')->where('user_id', 3);
376-
377374
$builder->orWhereIn('id', $subQuery);
378375

379376
**$builder->whereNotIn()**
@@ -396,7 +393,6 @@ You can use subqueries instead of an array of values::
396393

397394
// With builder directly
398395
$subQuery = $db->table('users_jobs')->select('job_id')->where('user_id', 3);
399-
400396
$builder->whereNotIn('id', $subQuery);
401397

402398
**$builder->orWhereNotIn()**
@@ -419,7 +415,6 @@ You can use subqueries instead of an array of values::
419415

420416
// With builder directly
421417
$subQuery = $db->table('users_jobs')->select('job_id')->where('user_id', 3);
422-
423418
$builder->orWhereNotIn('id', $subQuery);
424419

425420
************************
@@ -561,7 +556,6 @@ You can use subqueries instead of an array of values.::
561556

562557
// With builder directly
563558
$subQuery = $db->table('users_jobs')->select('user_id')->where('group_id', 3);
564-
565559
$builder->havingIn('id', $subQuery);
566560

567561
**$builder->orHavingIn()**
@@ -586,7 +580,6 @@ You can use subqueries instead of an array of values.::
586580

587581
// With builder directly
588582
$subQuery = $db->table('users_jobs')->select('user_id')->where('group_id', 3);
589-
590583
$builder->orHavingIn('id', $subQuery);
591584

592585
**$builder->havingNotIn()**
@@ -611,7 +604,6 @@ You can use subqueries instead of an array of values.::
611604

612605
// With builder directly
613606
$subQuery = $db->table('users_jobs')->select('user_id')->where('group_id', 3);
614-
615607
$builder->havingNotIn('id', $subQuery);
616608

617609
**$builder->orHavingNotIn()**
@@ -636,7 +628,6 @@ You can use subqueries instead of an array of values.::
636628

637629
// With builder directly
638630
$subQuery = $db->table('users_jobs')->select('user_id')->where('group_id', 3);
639-
640631
$builder->orHavingNotIn('id', $subQuery);
641632

642633
**$builder->havingLike()**

0 commit comments

Comments
 (0)