Skip to content

Commit

Permalink
API Use new names for renamed classes
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 17, 2024
1 parent 68cb17d commit e2f9763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ values in a simple manner

Within templates, the field can be iterated over as per a data object set.
The property $Value is available as a Varchar type, and other typical
properties such as $FirstLast etc are inherited from ViewableData.
properties such as $FirstLast etc are inherited from ModelData.

Data is stored in the database in a serialized PHP format. While this is not
ideal for searching purposes, some external indexing engines (eg the Solr
Expand Down
8 changes: 4 additions & 4 deletions src/ORM/FieldType/MultiValueField.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use SilverStripe\Forms\FormField;
use SilverStripe\ORM\FieldType\DBComposite;
use SilverStripe\ORM\FieldType\DBVarchar;
use SilverStripe\ORM\ArrayList;
use SilverStripe\View\ArrayData;
use SilverStripe\View\ViewableData;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\Model\ArrayData;
use SilverStripe\Model\ModelData;
use Symbiote\MultiValueField\Fields\MultiValueTextField;

/**
Expand Down Expand Up @@ -48,7 +48,7 @@ public function getValues(): mixed
*
* For a multivalue field, this will deserialise the value if it is a string
*/
public function setValue(mixed $value, null|array|ViewableData $record = null, bool $markChanged = true): static
public function setValue(mixed $value, null|array|ModelData $record = null, bool $markChanged = true): static
{
$this->changed = $this->changed || $markChanged;
if (!is_null($value)) {
Expand Down

0 comments on commit e2f9763

Please sign in to comment.