Skip to content

Commit

Permalink
Replace deprecated 'fieldList' with 'fields' in phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garas authored and ndm2 committed Jun 24, 2018
1 parent 66f90bd commit 9bd72b6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/ORM/Table.php
Expand Up @@ -2567,17 +2567,17 @@ public function marshaller()
* ```
*
* You can limit fields that will be present in the constructed entity by
* passing the `fieldList` option, which is also accepted for associations:
* passing the `fields` option, which is also accepted for associations:
*
* ```
* $article = $this->Articles->newEntity($this->request->getData(), [
* 'fieldList' => ['title', 'body', 'tags', 'comments'],
* 'associated' => ['Tags', 'Comments.Users' => ['fieldList' => 'username']]
* 'fields' => ['title', 'body', 'tags', 'comments'],
* 'associated' => ['Tags', 'Comments.Users' => ['fields' => 'username']]
* ]
* );
* ```
*
* The `fieldList` option lets remove or restrict input data from ending up in
* The `fields` option lets remove or restrict input data from ending up in
* the entity. If you'd like to relax the entity's default accessible fields,
* you can use the `accessibleFields` option:
*
Expand Down Expand Up @@ -2636,12 +2636,12 @@ public function newEntity($data = null, array $options = [])
* ```
*
* You can limit fields that will be present in the constructed entities by
* passing the `fieldList` option, which is also accepted for associations:
* passing the `fields` option, which is also accepted for associations:
*
* ```
* $articles = $this->Articles->newEntities($this->request->getData(), [
* 'fieldList' => ['title', 'body', 'tags', 'comments'],
* 'associated' => ['Tags', 'Comments.Users' => ['fieldList' => 'username']]
* 'fields' => ['title', 'body', 'tags', 'comments'],
* 'associated' => ['Tags', 'Comments.Users' => ['fields' => 'username']]
* ]
* );
* ```
Expand All @@ -2667,12 +2667,12 @@ public function newEntities(array $data, array $options = [])
* the data merged, but those that cannot, will be discarded.
*
* You can limit fields that will be present in the merged entity by
* passing the `fieldList` option, which is also accepted for associations:
* passing the `fields` option, which is also accepted for associations:
*
* ```
* $article = $this->Articles->patchEntity($article, $this->request->getData(), [
* 'fieldList' => ['title', 'body', 'tags', 'comments'],
* 'associated' => ['Tags', 'Comments.Users' => ['fieldList' => 'username']]
* 'fields' => ['title', 'body', 'tags', 'comments'],
* 'associated' => ['Tags', 'Comments.Users' => ['fields' => 'username']]
* ]
* );
* ```
Expand Down Expand Up @@ -2717,12 +2717,12 @@ public function patchEntity(EntityInterface $entity, array $data, array $options
* the data merged, but those that cannot, will be discarded.
*
* You can limit fields that will be present in the merged entities by
* passing the `fieldList` option, which is also accepted for associations:
* passing the `fields` option, which is also accepted for associations:
*
* ```
* $articles = $this->Articles->patchEntities($articles, $this->request->getData(), [
* 'fieldList' => ['title', 'body', 'tags', 'comments'],
* 'associated' => ['Tags', 'Comments.Users' => ['fieldList' => 'username']]
* 'fields' => ['title', 'body', 'tags', 'comments'],
* 'associated' => ['Tags', 'Comments.Users' => ['fields' => 'username']]
* ]
* );
* ```
Expand Down

0 comments on commit 9bd72b6

Please sign in to comment.