Skip to content

Commit c53bde5

Browse files
kenjisdatamweb
andauthored
docs: fix code
Co-authored-by: Pooya Parsa <[email protected]>
1 parent 33dd691 commit c53bde5

File tree

1 file changed

+1
-1
lines changed
  • user_guide_src/source/installation/upgrade_models

1 file changed

+1
-1
lines changed

user_guide_src/source/installation/upgrade_models/002.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class NewsModel extends Model
1010
protected $table = 'news';
1111

1212
// Sets the field names to allow to insert/update.
13-
protected $allowedFields = ['title', 'slug', 'body'];
13+
protected $allowedFields = ['title', 'slug', 'text'];
1414

1515
public function setNews($title, $slug, $text)
1616
{

0 commit comments

Comments
 (0)