Skip to content

Commit b67466c

Browse files
committed
cms@8c354fc
Finish 5.4.9
1 parent 500ddfb commit b67466c

File tree

2 files changed

+49
-9
lines changed

2 files changed

+49
-9
lines changed

docs/.artifacts/cms/5.x/addresses.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
| [orderBy](#orderby) | Determines the order that the addresses should be returned in. (If empty, defaults to `dateCreated DESC, elements.id`.)
4444
| [organization](#organization) | Narrows the query results based on the organization the addresses have.
4545
| [organizationTaxId](#organizationtaxid) | Narrows the query results based on the tax ID the addresses have.
46-
| [owner](#owner) | Sets the [ownerId](#ownerid) parameter based on a given owner element.
47-
| [ownerId](#ownerid) | Narrows the query results based on the addresses’ owner elements, per their IDs.
46+
| [owner](#owner) | Sets the [ownerId](#ownerid) and [siteId()](https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-siteid) parameters based on a given element.
47+
| [ownerId](#ownerid) | Narrows the query results based on the owner element of the addresses, per the owners’ IDs.
4848
| [postalCode](#postalcode) | Narrows the query results based on the postal code the addresses belong to.
4949
| [preferSites](#prefersites) | If [unique()](https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-unique) is set, this determines which site should be selected when querying multi-site elements.
5050
| [prepForEagerLoading](#prepforeagerloading) | Prepares the query for lazy eager loading.
@@ -209,6 +209,8 @@ Performs any post-population processing on elements.
209209

210210
Narrows the query results based on whether the addresses’ owners are drafts.
211211

212+
213+
212214
Possible values include:
213215

214216
| Value | Fetches addresses…
@@ -219,10 +221,14 @@ Possible values include:
219221

220222

221223

224+
225+
222226
#### `allowOwnerRevisions`
223227

224228
Narrows the query results based on whether the addresses’ owners are revisions.
225229

230+
231+
226232
Possible values include:
227233

228234
| Value | Fetches addresses…
@@ -233,6 +239,8 @@ Possible values include:
233239

234240

235241

242+
243+
236244
#### `andNotRelatedTo`
237245

238246
Narrows the query results to only addresses that are not related to certain other elements.
@@ -497,13 +505,15 @@ and any other elements in its collection.
497505

498506
Narrows the query results based on the field the addresses are contained by.
499507

508+
509+
500510
Possible values include:
501511

502512
| Value | Fetches addresses…
503513
| - | -
504514
| `'foo'` | in a field with a handle of `foo`.
505515
| `['foo', 'bar']` | in a field with a handle of `foo` or `bar`.
506-
| an `\craft\elements\db\craft\fields\Addresses` object | in a field represented by the object.
516+
| a `\craft\elements\db\craft\fields\Matrix` object | in a field represented by the object.
507517

508518

509519

@@ -528,6 +538,8 @@ $addresses = \craft\elements\Address::find()
528538

529539
Narrows the query results based on the field the addresses are contained by, per the fields’ IDs.
530540

541+
542+
531543
Possible values include:
532544

533545
| Value | Fetches addresses…
@@ -1002,30 +1014,34 @@ $addresses = \craft\elements\Address::find()
10021014

10031015
#### `owner`
10041016

1005-
Sets the [ownerId](#ownerid) parameter based on a given owner element.
1017+
Sets the [ownerId](#ownerid) and [siteId()](https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-siteid) parameters based on a given element.
1018+
1019+
10061020

10071021

10081022

10091023
::: code
10101024
```twig
1011-
{# Fetch addresses for the current user #}
1025+
{# Fetch addresses created for this entry #}
10121026
{% set addresses = craft.addresses()
1013-
.owner(currentUser)
1027+
.owner(myEntry)
10141028
.all() %}
10151029
```
10161030

10171031
```php
1018-
// Fetch addresses created for the current user
1032+
// Fetch addresses created for this entry
10191033
$addresses = \craft\elements\Address::find()
1020-
->owner(Craft::$app->user->identity)
1034+
->owner($myEntry)
10211035
->all();
10221036
```
10231037
:::
10241038

10251039

10261040
#### `ownerId`
10271041

1028-
Narrows the query results based on the addresses’ owner elements, per their IDs.
1042+
Narrows the query results based on the owner element of the addresses, per the owners’ IDs.
1043+
1044+
10291045

10301046
Possible values include:
10311047

@@ -1147,6 +1163,8 @@ Sets the [primaryOwnerId](#primaryownerid) and [siteId()](https://docs.craftcms.
11471163

11481164

11491165

1166+
1167+
11501168
::: code
11511169
```twig
11521170
{# Fetch addresses created for this entry #}
@@ -1168,6 +1186,8 @@ $addresses = \craft\elements\Address::find()
11681186

11691187
Narrows the query results based on the primary owner element of the addresses, per the owners’ IDs.
11701188

1189+
1190+
11711191
Possible values include:
11721192

11731193
| Value | Fetches addresses…

docs/.artifacts/cms/5.x/entries.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ Performs any post-population processing on elements.
146146

147147
Narrows the query results based on whether the entries’ owners are drafts.
148148

149+
150+
149151
Possible values include:
150152

151153
| Value | Fetches entries…
@@ -156,10 +158,14 @@ Possible values include:
156158

157159

158160

161+
162+
159163
#### `allowOwnerRevisions`
160164

161165
Narrows the query results based on whether the entries’ owners are revisions.
162166

167+
168+
163169
Possible values include:
164170

165171
| Value | Fetches entries…
@@ -170,6 +176,8 @@ Possible values include:
170176

171177

172178

179+
180+
173181
#### `ancestorDist`
174182

175183
Narrows the query results to only entries that are up to a certain distance away from the entry specified by [ancestorOf](#ancestorof).
@@ -799,6 +807,8 @@ $entries = \craft\elements\Entry::find()
799807

800808
Narrows the query results based on the field the entries are contained by.
801809

810+
811+
802812
Possible values include:
803813

804814
| Value | Fetches entries…
@@ -830,6 +840,8 @@ $entries = \craft\elements\Entry::find()
830840

831841
Narrows the query results based on the field the entries are contained by, per the fields’ IDs.
832842

843+
844+
833845
Possible values include:
834846

835847
| Value | Fetches entries…
@@ -1244,6 +1256,8 @@ Sets the [ownerId](#ownerid) and [siteId](#siteid) parameters based on a given e
12441256

12451257

12461258

1259+
1260+
12471261
::: code
12481262
```twig
12491263
{# Fetch entries created for this entry #}
@@ -1265,6 +1279,8 @@ $entries = \craft\elements\Entry::find()
12651279

12661280
Narrows the query results based on the owner element of the entries, per the owners’ IDs.
12671281

1282+
1283+
12681284
Possible values include:
12691285

12701286
| Value | Fetches entries…
@@ -1488,6 +1504,8 @@ Sets the [primaryOwnerId](#primaryownerid) and [siteId](#siteid) parameters base
14881504

14891505

14901506

1507+
1508+
14911509
::: code
14921510
```twig
14931511
{# Fetch entries created for this entry #}
@@ -1509,6 +1527,8 @@ $entries = \craft\elements\Entry::find()
15091527

15101528
Narrows the query results based on the primary owner element of the entries, per the owners’ IDs.
15111529

1530+
1531+
15121532
Possible values include:
15131533

15141534
| Value | Fetches entries…

0 commit comments

Comments
 (0)