学习汉字的冬眠? [英] Hibernate Envers for Doctrine?

查看:173
本文介绍了学习汉字的冬眠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1.x和2学说都提供了一种可以跟踪随时间变化的单独审计表的形式的版本支持。然而,这些版本似乎是针对每行使用的(即,它们都保留自己的版本号),而不是数据库范围,例如在Hibernate Envers中,这给每行提供了唯一的版本号。

Doctrine 1.x and 2 both offer some kind of Versionable support in the form of a separate auditing table that tracks changes over time. However, the versions appear to be intended for per-row use (ie, they all maintain their own version number) instead of database-wide, such as in Hibernate Envers, which gives every row a unique revision number.

Doctrine是否真的为这种行为提供支持?我在网上找不到任何建议。

Does Doctrine actually provide support for that kind of behavior? I couldn't find anything online to suggest that it does.

推荐答案

没有教义不支持这样的行为。你所有的都是AuditLog-Flag:

No doctrine does not support such a behaviour. All you have is the AuditLog-Flag:

  actAs:
    Versionable:
      versionColumn: version
      className: %CLASS%Version
      auditLog: true

激活一个完整的日志基于行的更改日志。但是,这不是一个表格或数据库版本。

That activates a complete log of a row based change log. But the is nothing like a table or database wide version.

这篇关于学习汉字的冬眠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆