StringTagField documentation fix
Fixed incorrect StringTagField documentation example.
This commit is contained in:
parent
d54873fbaf
commit
a5043123ce
|
@ -58,8 +58,8 @@ class BlogPost extends DataObject {
|
|||
```
|
||||
|
||||
```php
|
||||
$field = StringTagField::create(
|
||||
'BlogTags', 'Blog Tags', array('one', 'two'), explode(',', $post->Tags)
|
||||
$field = StringTagField::create(
|
||||
'Tags', 'Tags', array('one', 'two'), explode(',', this->Tags)
|
||||
);
|
||||
|
||||
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
||||
|
|
Loading…
Reference in New Issue