Skip to content

Commit 4443154

Browse files
committed
commerce@463d477
Allow mass assignment of dates
1 parent f82bea7 commit 4443154

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

docs/.artifacts/commerce/5.x/orders-carts.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
| [andWith](#andwith) | Causes the query to return matching orders eager-loaded with related elements, in addition to the elements that were already specified by [with](#with).
1414
| [asArray](#asarray) | Causes the query to return matching orders as arrays of data, rather than [Order](commerce5:craft\commerce\elements\Order) objects.
1515
| [cache](#cache) | Enables query cache for this Query.
16+
| [canonicalsOnly](#canonicalsonly) | Narrows the query results to only canonical elements, including elements that reference another canonical element via `canonicalId` so long as they aren’t a draft.
1617
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
1718
| [couponCode](#couponcode) | Narrows the query results based on the order's coupon code.
1819
| [customer](#customer) | Narrows the query results based on the customer’s user account.
@@ -207,6 +208,24 @@ Enables query cache for this Query.
207208

208209

209210

211+
#### `canonicalsOnly`
212+
213+
<a class="ref-defined-by" href="https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-canonicalsonly" target="_blank" rel="noopener noreferer">Defined by <code>craft\elements\db\ElementQuery</code></a>
214+
215+
Narrows the query results to only canonical elements, including elements
216+
that reference another canonical element via `canonicalId` so long as they
217+
aren’t a draft.
218+
219+
220+
221+
Unpublished drafts can be included as well if `drafts(null)` and
222+
`draftOf(false)` are also passed.
223+
224+
225+
226+
227+
228+
210229
#### `clearCachedResult`
211230

212231
<a class="ref-defined-by" href="https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-clearcachedresult" target="_blank" rel="noopener noreferer">Defined by <code>craft\elements\db\ElementQuery</code></a>

docs/.artifacts/commerce/5.x/subscriptions.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
| [andWith](#andwith) | Causes the query to return matching subscriptions eager-loaded with related elements, in addition to the elements that were already specified by [with](#with).
1414
| [asArray](#asarray) | Causes the query to return matching subscriptions as arrays of data, rather than [Subscription](commerce5:craft\commerce\elements\Subscription) objects.
1515
| [cache](#cache) | Enables query cache for this Query.
16+
| [canonicalsOnly](#canonicalsonly) | Narrows the query results to only canonical elements, including elements that reference another canonical element via `canonicalId` so long as they aren’t a draft.
1617
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
1718
| [dateCanceled](#datecanceled) | Narrows the query results based on the subscriptions’ cancellation date.
1819
| [dateCreated](#datecreated) | Narrows the query results based on the subscriptions’ creation dates.
@@ -184,6 +185,24 @@ Enables query cache for this Query.
184185

185186

186187

188+
#### `canonicalsOnly`
189+
190+
<a class="ref-defined-by" href="https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-canonicalsonly" target="_blank" rel="noopener noreferer">Defined by <code>craft\elements\db\ElementQuery</code></a>
191+
192+
Narrows the query results to only canonical elements, including elements
193+
that reference another canonical element via `canonicalId` so long as they
194+
aren’t a draft.
195+
196+
197+
198+
Unpublished drafts can be included as well if `drafts(null)` and
199+
`draftOf(false)` are also passed.
200+
201+
202+
203+
204+
205+
187206
#### `clearCachedResult`
188207

189208
<a class="ref-defined-by" href="https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-clearcachedresult" target="_blank" rel="noopener noreferer">Defined by <code>craft\elements\db\ElementQuery</code></a>

0 commit comments

Comments
 (0)