Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-100

XmlDriver and "discriminatorMap" for "EmbedMany"

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0BETA1
    • Fix Version/s: 1.0.0BETA2
    • Component/s: Mapping Drivers
    • Labels:
      None
    • Environment:
      CentOS 5.5 PHP 5.3.3

      Description

      Please correct me if i'm wrong but it looks like that current implementation of XmlDriver does not support the following feature:

      "discriminatorMap" for "EmbedMany"

      http://www.doctrine-project.org/projects/mongodb_odm/1.0/docs/reference/embedded-mapping/en#mixing-document-types

      <?php

      class User
      {
      /**

      • @EmbedMany(
      • discriminatorMap= { * "download"="DownloadTask", * "build"="BuildTask" * }
      • )
        */
        private $tasks = array();
        }

      This feature is very important for our project and without it looks like that we have to move to Docblock annotations instead of XML format which could be rather painful and time consuming.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        It looks like it is just missing. I'd be happy to accept a patch if you can provide one

        Show
        Jonathan H. Wage added a comment - It looks like it is just missing. I'd be happy to accept a patch if you can provide one

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Vitaliy Kaplich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: