Jira issue originally created by user ksid:
The value specified on the @ChangeTrackingPolicy annotation does not get converted to it's constant counterpart.
@ChangeTrackingPolicy("NOTIFY") is stored on the ClassMetadataInfo class as the string value "NOTIFY" and not converted to ClassMetadataInfo::CHANGETRACKING_NOTIFY. Passing an integer value works as expected.
This means all ClassMetadataInfo#isChangeTracking* methods return false. I've attached the patch I'm currently using based off r7404.
Comment created by romanb:
This should be fixed now in trunk.
Comment created by bjori:
That looks like a typo to me Roman. Shouldn't it be $changeTrackingAnnot?
$changeTrackingAnnot = $classAnnotations['Doctrine\ORM\Mapping\ChangeTrackingPolicy'];
Comment created by ksid:
Thanks Roman. Looks like the update has a few typos. I'll upload a patch for this in a moment.
Whoops. Sorry. Fixed now. Looks like we need some more test coverage for that.
Issue was closed with resolution "Fixed"
Thanks Roman. Had the comment window open for a while so Hannes got in there before me.
On a side note, shouldn't ClassMetadataInfo be used instead of ClassMetadata? Also, all constant() calls do not start the class names with a backslash with the exception of lines 176 and 198.
Imported 1 attachments from Jira into https://gist.github.com/04b179732418017473a7