src/ORM/FieldType/DBString.php
public function setOptions(array $options = [])
    {
        parent::setOptions($options);

        if (array_key_exists('nullifyEmpty', $options)) {
            $this->options['nullifyEmpty'] = (bool) $options['nullifyEmpty'];
        }
        if (array_key_exists('default', $options)) {
            $this->setDefaultValue($options['default']);
        }

        return $this;
    }
public function setOptions(array $options = [])
    {
        parent::setOptions($options);

        if (array_key_exists('nullifyEmpty', $options)) {
            $this->options['nullifyEmpty'] = (bool) $options['nullifyEmpty'];
        }
        if (array_key_exists('default', $options)) {
            $this->setDefaultValue($options['default']);
        }

        return $this;
    }
public function setOptions ( array $ options = [ ] ) { parent :: setOptions ( $ options ) ; if ( array_key_exists ( 'nullifyEmpty' , $ options ) ) { $ this -> options [ 'nullifyEmpty' ] = ( bool ) $ options [ 'nullifyEmpty' ] ; } if ( array_key_exists ( 'default' , $ options ) ) { $ this -> setDefaultValue ( $ options [ 'default' ] ) ; } return $ this ; }
Update the optional parameters for this field.

@param array $options Array of options
The options allowed are:
<ul><li>"nullifyEmpty"
This is a boolean flag.
True (the default) means that empty strings are automatically converted to nulls to be stored in
the database. Set it to false to ensure that nulls and empty strings are kept intact in the database.
</li></ul>
@return $this
Update the optional parameters for this field .