Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-695

Fixtures created badly when primary key is not autonumber

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: Import/Export
    • Labels:
      None
    • Environment:
      Tested on Linux/Mysql

      Description

      When exporting data where the primary key is not an autonumber the export function will hide the field anyway, merging the keys to the text identifier of the resulting record.

      This creates two problems:

      • the original value is lost due to size limit of the record identifier
      • the database is unable to generate the primary key when data-loading.

      A fix is attached that prevents the export function of hiding the said field from the fixture.

      1. fix.diff
        0.9 kB
        Luís Eduardo Jason Santos

        Issue Links

          Activity

          Hide
          jwage Jonathan H. Wage added a comment -

          Thanks for the issue and patch!

          Show
          jwage Jonathan H. Wage added a comment - Thanks for the issue and patch!

            People

            • Assignee:
              jwage Jonathan H. Wage
              Reporter:
              jasonsantos Luís Eduardo Jason Santos
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: