Merge pull request #35 from 3Dgoo/patch-1

StringTagField documentation fix
This commit is contained in:
Christopher Pitt 2015-08-21 13:03:15 +12:00
commit a4ebe803d5

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