src/ORM/FieldType/DBField.php
public function saveInto($dataObject)
    {
        $fieldName = $this->name;
        if (empty($fieldName)) {
            throw new \BadMethodCallException(
                "DBField::saveInto() Called on a nameless '" . static::class . "' object"
            );
        }
        $dataObject->$fieldName = $this->value;
    }
public function saveInto($dataObject)
    {
        $fieldName = $this->name;
        if (empty($fieldName)) {
            throw new \BadMethodCallException(
                "DBField::saveInto() Called on a nameless '" . static::class . "' object"
            );
        }
        $dataObject->$fieldName = $this->value;
    }
public function saveInto ( $ dataObject ) { $ fieldName = $ this -> name ; if ( empty ( $ fieldName ) ) { throw new \ BadMethodCallException ( "DBField::saveInto() Called on a nameless '" . static :: class . "' object" ) ; } $ dataObject -> $ fieldName = $ this -> value ; }
Saves this field to the given data object.

@param DataObject $dataObject
Saves this field to the given data object .