minor enhancement to handle a singular assignment to a hasMany relationship