/**
  * SaveInto checks if set-methods are available and use them instead of setting the values directly. saveInto
  * initiates a new LinkField class object to pass through the values to the setter method.
  */
 public function saveInto(DataObjectInterface $dataObject)
 {
     $db_field = $dataObject->dbObject($this->name);
     $type = $this->composite_fields['Type']->Value();
     $db_field->setLinkType($type);
     if (isset($this->composite_fields[$type])) {
         $db_field->setLinkValue($this->composite_fields[$type]->Value());
     }
 }