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

Moped does not set _type for STI collections

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:
      None

      Description

      class SubType < ParentType; end
      class ParentType
      Mongoid::Document
      end

      SubType.collection.insert( array_of_hashes )

      => _type : nil for all inserted records , which means that they belong to the ParentType, not the SubType.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tilo Tilo S
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: