Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ae21ec

Browse files
mariecharlesMarie CHARLES
andauthored
docs: fix forceSet() to _set() in example (#948)
Co-authored-by: Marie CHARLES <[email protected]>
1 parent 5265398 commit 5ae21ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,8 +1871,8 @@ Without auto-refreshing enabled, the above call to ``$post->getTitle()`` would r
18711871
;
18721872

18731873
$post->_disableAutoRefresh();
1874-
$post->setTitle('New Title'); // or using ->forceSet('title', 'New Title')
1875-
$post->setBody('New Body'); // or using ->forceSet('body', 'New Body')
1874+
$post->setTitle('New Title'); // or using ->_set('title', 'New Title')
1875+
$post->setBody('New Body'); // or using ->_set('body', 'New Body')
18761876
$post->_enableAutoRefresh();
18771877
$post->_save();
18781878

0 commit comments

Comments
 (0)