I deliberately left "types" to be an instance of Set - we do not need duplicates there. Although the same idea should've been applied to has-many relations, I had to make them Arrays so as to avoid automatic evaluation of "promised" values whenever a member is added to the set.
So, unless you have a use case where types should rather be an Array, I'll reject this pull request.
I deliberately left "types" to be an instance of Set - we do not need duplicates there. Although the same idea should've been applied to has-many relations, I had to make them Arrays so as to avoid automatic evaluation of "promised" values whenever a member is added to the set.
So, unless you have a use case where types should rather be an Array, I'll reject this pull request.