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

[PostgreSQL] In case model is build from existing database sequence name is invalid and doctrine throw exception


    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Schema Files
    • Labels:
    • Environment:
      symfony 1.4.5, postgresql 8.4, debian lenny, nginx


      Firstly I created database directly in postgresql.
      After that I generated schema from existsing database and after all i built model.

      When I try to insert new record to database I received following error:

      sequence "Category_id_seq" does not exist

      In schema file sequence name is defined like this: sequence: '"Address_id_seq"'
      There's are apostrophes and quotes.

      In Category model file is same like above, apostrophes and quotes.

      When I remove quotes from sequence in model files everything is ok and there're no problems with insert new row to database.


        kacperix Przemysław Ciąćka created issue -
        jwage Jonathan H. Wage made changes -
        Field Original Value New Value
        Fix Version/s 1.2.4 [ 10063 ]
        Fix Version/s 1.2.3 [ 10051 ]
        guilhermeblanco Guilherme Blanco made changes -
        Fix Version/s 1.2.4 [ 10063 ]


          • Assignee:
            jwage Jonathan H. Wage
            kacperix Przemysław Ciąćka
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: