Doctrine 1
  1. Doctrine 1
  2. DC-825

Versionable does not work with column alias on primary keys [+patch]

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Behaviors
    • Labels:
      None

      Description

      Using the Versionable behavior on a model which has a column with an alias and which is also primary causes the generation of a wrong version of the versionable table.

      Example:

       
      ModelFoo:
        model_id as id
        username
        password
      

      Generates tables:
      model_foo (model_id, username, password, version)
      model_foo_version (id, model_id, userrname, password, version)

      It should be:
      model_foo (model_id, username, password, version)
      model_foo_version (model_id, userrname, password, version)

        Activity

        Hide
        Enrico Stahn added a comment -
        Show
        Enrico Stahn added a comment - TestCase and Fix http://github.com/estahn/doctrine1/tree/DC-825
        Hide
        Enrico Stahn added a comment -

        The supplied patches are not up-to-date. Pls use http://github.com/estahn/doctrine1/tree/DC-825

        Show
        Enrico Stahn added a comment - The supplied patches are not up-to-date. Pls use http://github.com/estahn/doctrine1/tree/DC-825

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Enrico Stahn
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: