views:

37

answers:

1

Hi, Im using the Doctrine versionable behavior for one of my models. The schema works fine & tables are created. But when I try to load fixtures for this, I get a fatal error saying class TaxCodeVersion not found. I checked my Model dir, and indeed the class TaxCodeVersion is not generated by Doctrine. I always use the build --all --no-confirmation command. Am I missing on something?

TaxCode:
  package: Taxes
  tableName: Fin_Tax_Codes
  actAs:
    Activateable: ~
    SoftDelete: ~
    Versionable:
      tableName: fin_tax_codes_version
      versionColumn: version
      className: %CLASS%Version
      auditLog: true
    Auditable: ~
    Timestampable: ~
    Multitenant: ~
  columns:
    id:
      type: integer(4)
      primary: true
      notnull: true
      autoincrement: true
.....other columns.....
A: 

I've logged a bug here: Pl go thru it and vote if it affects you

If you can't live without this, then you can carefully set-up the model schema for the version class by manually creating a class file in the model directory and its parent in the base directory. Make sure that there are no relations on the version table, all unique indexes need to be dropped.

Prasad