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

"has_many :children" is broken

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

      It seems that somewhere since https://github.com/mongoid/mongoid/commit/8c4794f25f177feff8e8b49fb42e1184b186ff56, the ability to do has_many :children has been broken. I noticed it as having a model that has_many :children and embeds_many :somethings breaks nested attributes pretty badly, see: https://github.com/mongoid/mongoid/issues/3144 ...still looking for a workaround without rewriting large chunks of an app.

      On a similar subject, you can no longer have a model that embeds_many :fields and a Field model as this also causes breakages. I don't know if this is related but is also a common use-case.

            Assignee:
            arthurnn Arthur Nogueira Neves
            Reporter:
            thelucid thelucid
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: