@@ -184,7 +184,7 @@ selectMax(), You can optionally include a second parameter to rename
184
184
the resulting field.
185
185
186
186
.. note :: This method is particularly helpful when used with ``groupBy()``. For
187
- counting results generally see ``countAll() `` or ``countAllResults() ``.
187
+ counting results generally see ``countAll() `` or ``countAllResults() ``.
188
188
189
189
::
190
190
@@ -297,7 +297,8 @@ methods:
297
297
298
298
#. **Subqueries: **
299
299
You can use an anonymous function to create a subquery.
300
- ::
300
+
301
+ ::
301
302
302
303
$builder->where('advance_amount <', function(BaseBuilder $builder) {
303
304
return $builder->select('MAX(advance_amount)', false)->from('orders')->where('id >', 2);
@@ -307,7 +308,9 @@ methods:
307
308
**$builder->orWhere() **
308
309
309
310
This function is identical to the one above, except that multiple
310
- instances are joined by OR::
311
+ instances are joined by OR
312
+
313
+ ::
311
314
312
315
$builder->where('name !=', $name);
313
316
$builder->orWhere('id >', $id); // Produces: WHERE name != 'Joe' OR id > 50
@@ -330,7 +333,6 @@ You can use subqueries instead of an array of values.
330
333
$builder->whereIn('id', function(BaseBuilder $builder) {
331
334
return $builder->select('job_id')->from('users_jobs')->where('user_id', 3);
332
335
});
333
-
334
336
// Produces: WHERE "id" IN (SELECT "job_id" FROM "users_jobs" WHERE "user_id" = 3)
335
337
336
338
**$builder->orWhereIn() **
0 commit comments