Doctrine Versionable(审计日志)行为的问题

时间:2010-07-09 03:55:05

标签: forms symfony1 doctrine versioning

我正在为我的某个模型使用Doctrine版本化行为。架构运行良好&表已创建。但是当我尝试为此加载灯具时,我收到致命错误class TaxCodeVersion not found。我检查了我的Model目录,实际上TaxCodeVersion类不是由Doctrine生成的。我总是使用build --all --no-confirmation命令。我错过了什么吗?

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.....

1 个答案:

答案 0 :(得分:1)

我在这里记录了一个错误:Pl go thru it and vote if it affects you

如果没有这个就无法生存,那么您可以通过在模型目录中手动创建类文件及其基目录中的父文件来仔细设置版本类的模型模式。 确保版本表上没有关系,需要删除所有唯一索引。