Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2281

Validation against database-first generated xml requires that the column order within a composite primary key match the order the columns are in in mapping xml

    Details

    • Type: Bug Bug
    • Status: Awaiting Feedback
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None

      Description

      In using a database-first approach utilizing orm:convert-mapping to generate xml, the validation and schema-tool reports that my composite primary key (ex. Columns A, C, B) be dropped and added in the order in which the mapping appears in the xml (ex. Columns A, B, C).

      These columns are not auto-increment and are simply a mixture of int and varchar.

        Activity

        Aaron Moore created issue -
        Hide
        Benjamin Eberlei added a comment -

        Is the composite key a mix of association and field types?

        Show
        Benjamin Eberlei added a comment - Is the composite key a mix of association and field types?
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Awaiting Feedback [ 10000 ]
        Hide
        Aaron Moore added a comment -

        I'm trying to remember the usage as it was a short term project but I believe it is.

        For example a user has a userid.

        The table in question might have a primary key consisting of the userid and an int representing a year..

        Show
        Aaron Moore added a comment - I'm trying to remember the usage as it was a short term project but I believe it is. For example a user has a userid. The table in question might have a primary key consisting of the userid and an int representing a year..

        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-2281, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Aaron Moore
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: