/**
  * Method to save this form field into the given {@link DataObject}.
  *
  * By default, makes use of $this->dataValue()
  *
  * @param DataObject|DataObjectInterface $record DataObject to save data into
  */
 public function saveInto(DataObjectInterface $record)
 {
     if ($this->name) {
         $record->setCastedField($this->name, $this->dataValue());
     }
 }
 public function saveInto(DataObjectInterface $record)
 {
     $completeNumber = static::joinPhoneNumber($this->parseValue());
     $record->setCastedField($this->getName(), $completeNumber);
 }