DOC Update readme example

This commit is contained in:
Steve Boyd 2023-11-20 13:19:19 +13:00
parent 25671da390
commit 946d92a7e8

View File

@ -121,7 +121,7 @@ $field = StringTagField::create(
'Tags',
'Tags',
['one', 'two'],
explode(',', $this->Tags)
explode(',', $this->Tags ?: '')
);
$field->setShouldLazyLoad(true); // tags should be lazy loaded