public function toDatabase($value, Driver $driver)
    {
        if (is_string($value)) {
            return $this->convertStringToBinaryUuid($value);
        }

        return $value;
    }
public function toDatabase($value, Driver $driver)
    {
        if (is_string($value)) {
            return $this->convertStringToBinaryUuid($value);
        }

        return $value;
    }
public function toDatabase ( $ value , Driver $ driver ) { if ( is_string ( $ value ) ) { return $ this -> convertStringToBinaryUuid ( $ value ) ; } return $ value ; }
Convert binary uuid data into the database format.

Binary data is not altered before being inserted into the database.
As PDO will handle reading file handles.

@param string|resource $value The value to convert.
@param \Cake\Database\Driver $driver The driver instance to convert with.
@return string|resource
Convert binary uuid data into the database format .