@@ -339,60 +339,60 @@ For details, see the documentation for `Cake\Database\FunctionsBuilder`.
339339
340340You can access existing wrappers for several SQL functions through ` SelectQuery::func() ` :
341341
342- ` rand() `
342+ ` rand() `
343343Generate a random value between 0 and 1 via SQL.
344344
345- ` sum() `
345+ ` sum() `
346346Calculate a sum. <span class =" title-ref " >Assumes arguments are literal values.</span >
347347
348- ` avg() `
348+ ` avg() `
349349Calculate an average. <span class =" title-ref " >Assumes arguments are literal values.</span >
350350
351- ` min() `
351+ ` min() `
352352Calculate the min of a column. <span class =" title-ref " >Assumes arguments are literal values.</span >
353353
354- ` max() `
354+ ` max() `
355355Calculate the max of a column. <span class =" title-ref " >Assumes arguments are literal values.</span >
356356
357- ` count() `
357+ ` count() `
358358Calculate the count. <span class =" title-ref " >Assumes arguments are literal values.</span >
359359
360- ` cast() `
360+ ` cast() `
361361Convert a field or expression from one data type to another.
362362
363- ` concat() `
363+ ` concat() `
364364Concatenate two values together. <span class =" title-ref " >Assumes arguments are bound parameters.</span >
365365
366- ` coalesce() `
366+ ` coalesce() `
367367Coalesce values. <span class =" title-ref " >Assumes arguments are bound parameters.</span >
368368
369- ` dateDiff() `
369+ ` dateDiff() `
370370Get the difference between two dates/times. <span class =" title-ref " >Assumes arguments are bound parameters.</span >
371371
372- ` now() `
372+ ` now() `
373373Defaults to returning date and time, but accepts 'time' or 'date' to return only
374374those values.
375375
376- ` extract() `
376+ ` extract() `
377377Returns the specified data part from the SQL expression.
378378
379- ` dateAdd() `
379+ ` dateAdd() `
380380Add the time unit to the date expression.
381381
382- ` dayOfWeek() `
382+ ` dayOfWeek() `
383383Returns a FunctionExpression representing a call to SQL WEEKDAY function.
384384
385385#### Window-Only Functions
386386
387387These window-only functions contain a window expression by default:
388388
389- ` rowNumber() `
389+ ` rowNumber() `
390390Returns an Aggregate expression for the ` ROW_NUMBER() ` SQL function.
391391
392- ` lag() `
392+ ` lag() `
393393Returns an Aggregate expression for the ` LAG() ` SQL function.
394394
395- ` lead() `
395+ ` lead() `
396396Returns an Aggregate expression for the ` LEAD() ` SQL function.
397397
398398When providing arguments for SQL functions, there are two kinds of parameters
@@ -1047,14 +1047,14 @@ WHERE (
10471047The ` QueryExpression ` passed to the callback allows you to use both
10481048** combinators** and ** conditions** to build the full expression.
10491049
1050- Combinators
1050+ Combinators
10511051These create new ` QueryExpression ` objects and set how the conditions added
10521052to that expression are joined together.
10531053
10541054- ` and() ` creates new expression objects that joins all conditions with ` AND ` .
10551055- ` or() ` creates new expression objects that joins all conditions with ` OR ` .
10561056
1057- Conditions
1057+ Conditions
10581058These are added to the expression and automatically joined together
10591059depending on which combinator was used.
10601060
@@ -1445,7 +1445,7 @@ can be useful when you do not know whether you will get a scalar or array of
14451445parameters. The ` [] ` suffix on any data type name indicates to the query
14461446builder that you want the data handled as an array. If the data is not an array,
14471447it will first be cast to an array. After that, each value in the array will
1448- be cast using the [ type system] ( ../orm/database-basics#database- data-types ) . This works with
1448+ be cast using the [ type system] ( ../orm/database-basics#data-types ) . This works with
14491449complex types as well. For example, you could take a list of DateTime objects
14501450using:
14511451
0 commit comments