Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1660

setting an embeds many association a second time does not persist the relationship

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.4
    • Affects Version/s: None
    • Component/s: None
    • None

      here's an example

      ~~~ruby
      person = Person.create addresses: [address_one]
      person.addresses = [address_two]
      person.save
      person.reload.addresses.first # => address_one
      ~~~

      The pull request has a failing spec, but would appreciate any help on figuring out where to make the fix.

      It's somewhere around persisting an embeds many relationship.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gerad Gerad Suyderhoud
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: