rom-rb / rom

Data mapping and persistence toolkit for Ruby
https://rom-rb.org
MIT License
2.08k stars 161 forks source link

OneToMany#associate should support multiple child tuples #477

Closed solnic closed 5 years ago

solnic commented 6 years ago

This prevents changesets from associating parent with multiple children via Changeset#associate. It should be as simple as tweaking OneToMany#associate so that it accepts one or more child tuples.

solnic commented 5 years ago

I've revisited this and it turned out it's actually an issue with how associated changesets handle arrays. I'll fix that because OneToMany#associate has nothing to do with this so this issue is invalid after all.