When detaching an object from it's parent in a 1:n relation the field
holding the parent uid may not be set to an empty string as this field
actually holds an integer value. This leads to SQL errors when used with
MySQL in strict mode.