Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2467

Incorrect work with default values, indexes, autoincrement (patch attached)

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.4
    • Fix Version/s: None
    • Component/s: Mapping Drivers, ORM, Tools
    • Labels:
      None

      Description

      If you use in your MySQL database default values, indexes or string primary key, you get incorrect mapping by mapping generator. For get it - just use in database one or more from listed abilities, generate mapping for that and then try to dump-sql with schema-tool:update.

      Hope you fix it. Tnx!

        Activity

        And created issue -
        Marco Pivetta made changes -
        Field Original Value New Value
        Priority Critical [ 2 ] Minor [ 4 ]
        Marco Pivetta made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Hide
        Marco Pivetta added a comment -

        Marked as minor improvement - thank you for the patch!

        Show
        Marco Pivetta added a comment - Marked as minor improvement - thank you for the patch!
        Hide
        And added a comment -

        When it will be merged? Maybe, planned version?

        Show
        And added a comment - When it will be merged? Maybe, planned version?
        Hide
        Marco Pivetta added a comment -

        And such a patch requires failing tests before being applied - that's up to whoever picks it up.

        Show
        Marco Pivetta added a comment - And such a patch requires failing tests before being applied - that's up to whoever picks it up.
        Hide
        And added a comment -

        So if I add patch with tests - it will be merged? =)

        Show
        And added a comment - So if I add patch with tests - it will be merged? =)
        Hide
        Marco Pivetta added a comment -

        Most probably - you can open a pull request against the current ORM master for that

        Show
        Marco Pivetta added a comment - Most probably - you can open a pull request against the current ORM master for that

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

          People

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

            Dates

            • Created:
              Updated: