Please sign in to comment.
Treat  and '' the same when saving belongsToMany associations.
Both  and '' are semantically the same in this association type (empty data). Because '', false, and null can all be interpreted as no data, we'll use all 3 to represent an empty set. This matches the behavior we use when handling hasMany associations well. Going forward when updating a belongsToMany association these empty values will clear out links. Previously '' would cause saving to silently fail and possibly emit errors when doing updates which was bad. Refs #6817
- Loading branch information...
Showing with 53 additions and 7 deletions.