StringTagField documentation fix

Fixed incorrect StringTagField documentation example.
This commit is contained in:
3Dgoo 2015-08-21 10:18:40 +09:30
parent d54873fbaf
commit a5043123ce
1 changed files with 2 additions and 2 deletions

View File

@ -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