如何个性化ACL的表名?

时间:2013-03-27 08:35:25

标签: mysql symfony acl

在我的数据库模式中,通常我会为所有表使用标准化的命名系统。 Symfony,我猜,ACL本身在他的模式中使用了特定的名称。

这是表格的默认名称:

  • acl_security_identities
  • acl_classes
  • acl_object_identities
  • acl_object_identity_ancestors
  • acl_entries

有没有办法更改这些表的名称?

2 个答案:

答案 0 :(得分:1)

是!

可以自定义表名!

http://symfony.com/doc/2.8/reference/configuration/security.html

  acl:
    tables:
        class:                acl_classes
        entry:                acl_entries
        object_identity:      acl_object_identities
        object_identity_ancestors:  acl_object_identity_ancestors
        security_identity:    acl_security_identities

答案 1 :(得分:0)

没有

除非你想分叉Symfony的安全组件并根据你的需要进行破解。 如果是这样,这是一个很好的起点: https://github.com/symfony/Security/tree/master/Acl/Resources/schema