Doctrine 1
  1. Doctrine 1
  2. DC-839

Version classes not built for models using package attribute

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: Behaviors
    • Labels:
      None
    • Environment:
      PHP 5.2.3 / Symfony 1.4.6

      Description

      For models using the 'package' attribute in the schema definition, the version classes do not get created. However, the version table gets created.

      There is no problem during the build, but when loading fixtures, there is a fatal error: Class TaxCodeVersion not found

      TaxCode:
      package: Masters
      tableName: Fin_Tax_Codes
      actAs:
      Activateable: ~
      SoftDelete: ~

      1. Versionable:
      2. tableName: fin_tax_codes_version
        1. versionColumn: version
      3. className: %CLASS%Version
        1. auditLog: true
          Auditable: ~
          Timestampable: ~
          .......

        Activity

        Prasad Gupte created issue -
        Hide
        hetsch added a comment -

        Same here,

        If i use this yaml file:

        Page:
        actAs:
        NestedSet:
        hasManyRoots: true
        rootColumnName: root_id
        Versionable:
        versionColumn: version
        className: %CLASS%Version
        auditLog: true
        Timestampable:
        created:
        name: created_at
        type: timestamp
        format: Y-m-d H
        updated:
        name: updated_at
        type: timestamp
        format: Y-m-d H
        I18n:
        fields: [name]
        columns:
        name: string(255)

        PageVersion and PageTranslation Models don't get generated if i use 'build-models-yaml'. Have to create the Models manually then it works fine.

        Show
        hetsch added a comment - Same here, If i use this yaml file: Page: actAs: NestedSet: hasManyRoots: true rootColumnName: root_id Versionable: versionColumn: version className: %CLASS%Version auditLog: true Timestampable: created: name: created_at type: timestamp format: Y-m-d H updated: name: updated_at type: timestamp format: Y-m-d H I18n: fields: [name] columns: name: string(255) PageVersion and PageTranslation Models don't get generated if i use 'build-models-yaml'. Have to create the Models manually then it works fine.

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

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Prasad Gupte
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: