Skip to content

Commit 52d4c9f

Browse files
authored
Merge pull request #6562 from imahmood/patch-1
Update saving-data.rst
2 parents 2b32bd1 + 770744a commit 52d4c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/orm/saving-data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ There are two ways of protecting you against this problem. The first one is by
659659
setting 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
663663
data 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

0 commit comments

Comments
 (0)