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

Inheritance: Allow specification of discriminator field (eg. other than _type)

    • Done
    • Discriminator Key Override
    • Hide

      Engineer(s): Neil Shweky, Oleg Pudeyev

      2020-07-10: Initial end date set to 2020-08-07 (4 Weeks)

      • This is the intern project that Neil Shweky will be focusing on for the duration of the internship, ending August 7th.
      • Work has been kicked off and already making good progress!
      Show
      Engineer(s): Neil Shweky, Oleg Pudeyev 2020-07-10: Initial end date set to 2020-08-07 (4 Weeks) This is the intern project that Neil Shweky will be focusing on for the duration of the internship, ending August 7th. Work has been kicked off and already making good progress!
    • Major Change

      Tangentially related to issue: https://jira.mongodb.org/browse/MONGOID-4816

      Mongoose lets you optionally specify which field to use as the discriminator for subclasses, rather than just hardcoding _type.

      It would be nice if Mongoid had an macro/option to do the same.

      Scope of work:

      Investigate how mongoose and doctrine handle overriding discriminator field name
      Write a proposed design document
      Adjust submitted PR or implemented design in another way as appropriate
      Define test plan
      Write tests to satisfy test plan
      Add user documentation to tutorial

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            ataramina@shorecg.com Andrzej Taramina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 weeks