Skip to content

Loading…

DDC-1816: DiscriminatorColumn Metadata wrong #2473

Closed
doctrinebot opened this Issue · 3 comments

2 participants

@doctrinebot

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" entities

produces 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.

@doctrinebot

Comment created by @beberlei:

It works for me 7b758ee

Can you post your XML mapping that produces this behavior?

@doctrinebot

Comment created by @beberlei:

No feedback given

@doctrinebot

Issue was closed with resolution "Incomplete"

@beberlei beberlei was assigned by doctrinebot
@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.