Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Incomplete
    • Affects Version/s: 2.2.1, 2.2.2
    • Fix Version/s: None
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None
    • Environment:
      Windows 7, PHP 5.38

      Description

      The discriminator column metadata (inheritance) is not properly processed. For example, using an entity described by XML annotations containing

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

        Activity

        Florian Schmedding created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 13690 ] jira-feedback [ 14063 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14063 ] jira-feedback2 [ 15927 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15927 ] jira-feedback3 [ 18178 ]
        Hide
        Benjamin Eberlei added a comment -

        It works for me https://github.com/doctrine/doctrine2/commit/7b758eee573a2667fccfe72dabacf3639c960911

        Can you post your XML mapping that produces this behavior?

        Show
        Benjamin Eberlei added a comment - It works for me https://github.com/doctrine/doctrine2/commit/7b758eee573a2667fccfe72dabacf3639c960911 Can you post your XML mapping that produces this behavior?
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Awaiting Feedback [ 10000 ]
        made changes -
        Status Awaiting Feedback [ 10000 ] In Progress [ 3 ]
        Marco Pivetta made changes -
        Status In Progress [ 3 ] Awaiting Feedback [ 10000 ]
        Benjamin Eberlei made changes -
        Status Awaiting Feedback [ 10000 ] Open [ 1 ]
        Hide
        Benjamin Eberlei added a comment -

        No feedback given

        Show
        Benjamin Eberlei added a comment - No feedback given
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Incomplete [ 4 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1816, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Florian Schmedding
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: