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

@ChangeTrackingPolicy notation is ignored in @MappedSuperclass

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0BETA1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      CentOS 5.5, PHP 5.3

      Description

      I am not sure if it's supposed to be that @MappedSuperclass document can define @ChangeTrackingPolicy for multiple documents but in fact it does not work.

      In other words in the case below:
      ===================================================

      /**

      • @MappedSuperclass
      • @InheritanceType("COLLECTION_PER_CLASS")
      • @ChangeTrackingPolicy("DEFERRED_EXPLICIT")
        */
        abstract class MappedDocument
        {
        }

      /**

      • @Document(collection="chart")
        */
        class Chart extends MappedDocument
        {
        }

      ===================================================

      class Chart

      • has InheritanceType = INHERITANCE_TYPE_COLLECTION_PER_CLASS which is expected
      • but ChangeTrackingPolicy = CHANGETRACKING_DEFERRED_IMPLICIT (value by default) which is NOT expected.

      At the same time if to define ChangeTrackingPolicy in the Chart class instead of MappedDocument it works as expected.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: