src/ORM/FieldType/DBField.php
public function prepValueForDB($value)
    {
        if ($value === null ||
            $value === "" ||
            $value === false ||
            ($this->scalarValueOnly() && !is_scalar($value))
        ) {
            return null;
        } else {
            return $value;
        }
    }
public function prepValueForDB($value)
    {
        if ($value === null ||
            $value === "" ||
            $value === false ||
            ($this->scalarValueOnly() && !is_scalar($value))
        ) {
            return null;
        } else {
            return $value;
        }
    }
public function prepValueForDB ( $ value ) { if ( $ value === null || $ value === "" || $ value === false || ( $ this -> scalarValueOnly ( ) && ! is_scalar ( $ value ) ) ) { return null ; } else { return $ value ; } }
Return the transformed value ready to be sent to the database. This value
will be escaped automatically by the prepared query processor, so it
should not be escaped or quoted at all.

@param $value mixed The value to check
@return mixed The raw value, or escaped parameterised details
Return the transformed value ready to be sent to the database . This value will be escaped automatically by the prepared query processor so it should not be escaped or quoted at all .