File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -659,7 +659,7 @@ There are two ways of protecting you against this problem. The first one is by
659659setting the default columns that can be safely set from a request using the
660660:ref: `entities-mass-assignment ` feature in the entities.
661661
662- The second way is by using the ``fieldList `` option when creating or merging
662+ The second way is by using the ``fields `` option when creating or merging
663663data into an entity::
664664
665665 // Contains ['user_id' => 100, 'title' => 'Hacked!'];
@@ -677,7 +677,7 @@ You can also control which properties can be assigned for associations::
677677 // and the tag name is the only column that can be set
678678 $entity = $this->patchEntity($entity, $data, [
679679 'fields' => ['title', 'tags'],
680- 'associated' => ['Tags' => ['fieldList ' => ['name']]]
680+ 'associated' => ['Tags' => ['fields ' => ['name']]]
681681 ]);
682682 $this->save($entity);
683683
You can’t perform that action at this time.
0 commit comments