You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| [addOrderBy](#addorderby) | Adds additional ORDER BY columns to the query.
12
11
| [afterPopulate](#afterpopulate) | Performs any post-population processing on elements.
13
12
| [andRelatedTo](#andrelatedto) | Narrows the query results to only orders that are related to certain other elements.
14
13
| [asArray](#asarray) | Causes the query to return matching orders as arrays of data, rather than [Order](commerce5:craft\commerce\elements\Order) objects.
@@ -24,7 +23,6 @@
24
23
| [eagerly](#eagerly) | Causes the query to be used to eager-load results for the query’s source element and any other elements in its collection.
25
24
| [email](#email) | Narrows the query results based on the customers’ email addresses.
26
25
| [expiryDate](#expirydate) | Narrows the query results based on the orders’ expiry dates.
27
-
| [fields](#fields) | Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
28
26
| [fixedOrder](#fixedorder) | Causes the query results to be returned in the order specified by [id](#id).
29
27
| [gateway](#gateway) | Narrows the query results based on the gateway.
30
28
| [gatewayId](#gatewayid) | Narrows the query results based on the gateway, per its ID.
@@ -85,19 +83,6 @@
85
83
<!-- textlint-enable -->
86
84
87
85
88
-
#### `addOrderBy`
89
-
90
-
Adds additional ORDER BY columns to the query.
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
86
#### `afterPopulate`
102
87
103
88
Performs any post-population processing on elements.
Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
523
-
524
-
A field is a named element in the returned array by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail).
525
-
This method should return an array of field names or field definitions.
526
-
If the former, the field name will be treated as an object property name whose value will be used
527
-
as the field value. If the latter, the array key should be the field name while the array value should be
528
-
the corresponding field definition which can be either an object property name or a PHP callable
529
-
returning the corresponding field value. The signature of the callable should be:
530
-
531
-
```php
532
-
function ($model, $field) {
533
-
// return field value
534
-
}
535
-
```
536
-
537
-
For example, the following code declares four fields:
538
-
539
-
-`email`: the field name is the same as the property name `email`;
540
-
-`firstName` and `lastName`: the field names are `firstName` and `lastName`, and their
541
-
values are obtained from the `first_name` and `last_name` properties;
542
-
-`fullName`: the field name is `fullName`. Its value is obtained by concatenating `first_name`
| [addOrderBy](#product-addorderby) | Adds additional ORDER BY columns to the query.
16
15
| [after](#product-after) | Narrows the query results to only products that were posted on or after a certain date.
17
16
| [afterPopulate](#product-afterpopulate) | Performs any post-population processing on elements.
18
17
| [andRelatedTo](#product-andrelatedto) | Narrows the query results to only products that are related to certain other elements.
@@ -30,7 +29,6 @@ Product queries support the following parameters:
30
29
| [defaultWidth](#product-defaultwidth) | Narrows the query results based on the products’ default variant width dimension IDs.
31
30
| [eagerly](#product-eagerly) | Causes the query to be used to eager-load results for the query’s source element and any other elements in its collection.
32
31
| [expiryDate](#product-expirydate) | Narrows the query results based on the products’ expiry dates.
33
-
| [fields](#product-fields) | Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
34
32
| [fixedOrder](#product-fixedorder) | Causes the query results to be returned in the order specified by [id](#product-id).
35
33
| [hasVariant](#product-hasvariant) | Narrows the query results to only products that have certain variants.
36
34
| [id](#product-id) | Narrows the query results based on the products’ IDs.
@@ -69,19 +67,6 @@ Product queries support the following parameters:
Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
562
-
563
-
A field is a named element in the returned array by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail).
564
-
This method should return an array of field names or field definitions.
565
-
If the former, the field name will be treated as an object property name whose value will be used
566
-
as the field value. If the latter, the array key should be the field name while the array value should be
567
-
the corresponding field definition which can be either an object property name or a PHP callable
568
-
returning the corresponding field value. The signature of the callable should be:
569
-
570
-
```php
571
-
function ($model, $field) {
572
-
// return field value
573
-
}
574
-
```
575
-
576
-
For example, the following code declares four fields:
577
-
578
-
-`email`: the field name is the same as the property name `email`;
579
-
-`firstName` and `lastName`: the field names are `firstName` and `lastName`, and their
580
-
values are obtained from the `first_name` and `last_name` properties;
581
-
-`fullName`: the field name is `fullName`. Its value is obtained by concatenating `first_name`
| [addOrderBy](#addorderby) | Adds additional ORDER BY columns to the query.
12
11
| [afterPopulate](#afterpopulate) | Performs any post-population processing on elements.
13
12
| [andRelatedTo](#andrelatedto) | Narrows the query results to only subscriptions that are related to certain other elements.
14
13
| [asArray](#asarray) | Causes the query to return matching subscriptions as arrays of data, rather than [Subscription](commerce5:craft\commerce\elements\Subscription) objects.
@@ -20,7 +19,6 @@
20
19
| [dateSuspended](#datesuspended) | Narrows the query results based on the subscriptions’ suspension date.
21
20
| [dateUpdated](#dateupdated) | Narrows the query results based on the subscriptions’ last-updated dates.
22
21
| [eagerly](#eagerly) | Causes the query to be used to eager-load results for the query’s source element and any other elements in its collection.
23
-
| [fields](#fields) | Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
24
22
| [fixedOrder](#fixedorder) | Causes the query results to be returned in the order specified by [id](#id).
25
23
| [gatewayId](#gatewayid) | Narrows the query results based on the gateway, per its ID.
26
24
| [hasStarted](#hasstarted) | Narrows the query results to only subscriptions that have started.
@@ -63,19 +61,6 @@
63
61
<!-- textlint-enable -->
64
62
65
63
66
-
#### `addOrderBy`
67
-
68
-
Adds additional ORDER BY columns to the query.
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
64
#### `afterPopulate`
80
65
81
66
Performs any post-population processing on elements.
@@ -361,45 +346,6 @@ and any other elements in its collection.
361
346
362
347
363
348
364
-
#### `fields`
365
-
366
-
Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
367
-
368
-
A field is a named element in the returned array by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail).
369
-
This method should return an array of field names or field definitions.
370
-
If the former, the field name will be treated as an object property name whose value will be used
371
-
as the field value. If the latter, the array key should be the field name while the array value should be
372
-
the corresponding field definition which can be either an object property name or a PHP callable
373
-
returning the corresponding field value. The signature of the callable should be:
374
-
375
-
```php
376
-
function ($model, $field) {
377
-
// return field value
378
-
}
379
-
```
380
-
381
-
For example, the following code declares four fields:
382
-
383
-
-`email`: the field name is the same as the property name `email`;
384
-
-`firstName` and `lastName`: the field names are `firstName` and `lastName`, and their
385
-
values are obtained from the `first_name` and `last_name` properties;
386
-
-`fullName`: the field name is `fullName`. Its value is obtained by concatenating `first_name`
0 commit comments