mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Discriminator "fieldName" is not set in ClassMetadata #5763
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 @matthias-z on GitHub (Nov 8, 2017).
Originally assigned to: @Ocramius on GitHub.
When a discriminator column is defined with a field name (property "fieldName") the corresponding value in ClassMetadata is set to the column name (property "name") instead.
It is my understanding that this should only occur as a default when no field name is configured.
I observed this behavior using the
AnnotationDriver:But from what I've seen in the code
XmlDriverorYamlDrivershould behave the same in that regard.@Ocramius commented on GitHub (Jan 1, 2018):
Closing as
invalidas per https://github.com/doctrine/doctrine2/pull/6817#issuecomment-354667371