Fixes bug where ManyToMany associations are not saved, unless configured to cascade. The target entities shouldn't be saved unless cascade is set, but the association itself should be saved regardless.
Merged.
TestDuplcateKeyException persists to the intersection table twice (both directions) so hits a primary key violation inserting into the intersection table.