Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-576

New entities must have primary key values right after flushing with IDENTITY strategy

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA1
    • Fix Version/s: 2.0-BETA2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      PostgreSQL 8.4.3, Ubuntu 10.04

      Description

      After insertion of some new entity the primary key must be set. Example code is attached above.

        Activity

        Václav Novotný created issue -
        Václav Novotný made changes -
        Field Original Value New Value
        Summary New entities must have primary key values right after flushing New entities must have primary key values right after flushing with IDENTITY strategy
        Roman S. Borschel made changes -
        Assignee Roman S. Borschel [ romanb ] Benjamin Eberlei [ beberlei ]
        Roman S. Borschel made changes -
        Assignee Benjamin Eberlei [ beberlei ] Roman S. Borschel [ romanb ]
        Roman S. Borschel made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Roman S. Borschel made changes -
        Fix Version/s 2.0-BETA2 [ 10050 ]
        Roman S. Borschel made changes -
        Comment [ OK. I think I reproduced this already. Seems to be related to PostgreSQL + IDENTITY only. The SequenceIdentityGenerator must be used but apparently it is not used.

        Thanks for the report. Will keep you updated. ]
        Roman S. Borschel made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 11330 ] jira-feedback [ 15624 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15624 ] jira-feedback2 [ 17488 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17488 ] jira-feedback3 [ 19745 ]

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Václav Novotný
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: