Skip to content


DDC-703: Explicit change tracking not inherited by inheriting classes #5215

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user dennis.verspuij:

I have a class B that inherits from A using single table inheritance strategy with discriminator column.
On class A I have defined @ChangeTrackingPolicy ("DEFERRED_EXPLICIT"), which should be inherited by B, but it is not currenlty.

This means that when I have a managed instance $b of B $em->getClassMetadata(get_class($b))->isChangeTrackingDeferredExplicit()
does not return TRUE and calling $em->persist($b) and $em->flush() does not save any changes to $b.

If I set @ChangeTrackingPolicy ("DEFERRED_EXPLICIT") on class B it does work. So either way I think B should inherit the change tracking policy of A, or it should have IMPLICT as default like A but not none.


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0-BETA4 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.