mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1816: DiscriminatorColumn Metadata wrong #2285
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 (May 8, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user flo:
The discriminator column metadata (inheritance) is not properly processed. For example, using an entity described by XML annotations containing
xml<discriminiator-column name="category" type="string" length="30"/>will generate wrong SQL queries containing the column 'dtype' instead of 'category' when using an XML metadata driver.
Generating classes from the XML metadata with
doctrine orm:generate-entities --generate-annotations="true" --generate-methods="true" entitiesproduces wrong docblock annotations like
@ORM\DiscriminatorColumn(name="r", type="r", length=r)However, the entity works as expected after correcting the annotation values and replacing the XML meatdata driver by an annotation metadata driver.