mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-433: @ChangeTrackingPolicy values are not converted to integers #540
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Mar 16, 2010).
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.
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by romanb:
This should be fixed now in trunk.
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by bjori:
That looks like a typo to me Roman. Shouldn't it be $changeTrackingAnnot?
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by ksid:
Thanks Roman. Looks like the update has a few typos. I'll upload a patch for this in a moment.
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by romanb:
Whoops. Sorry. Fixed now. Looks like we need some more test coverage for that.
@doctrinebot commented on GitHub (Mar 18, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by ksid:
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.
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/04b179732418017473a7