本文介绍了Symfony2:如何获取标有“EDIT”的所有类型的实体。 ACL权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我如何获得标有编辑ACL权限的所有类型的实体?我想用原则构建查询EntityManager。
解决方案
我是Symfony 2的新手,但我遇到同样的问题,所以我想出了一个解决方案对我来说工作很好,请看这个要点。
这对我来说很好,我用一个大型数据库进行了测试,响应时间也从mysql
Can someone tell me how to get all entities of one type which are marked with "EDIT" ACL permission?
I would like to build a query with the Doctrine EntityManager.
解决方案
I am new to Symfony 2 but i faced the same problem, so i came up with a solution and it is working perfectly fine for me, please look at this gist. ACLHelper
This is working well for me, i tested this with a large database, and the response time is also good from mysql
这篇关于Symfony2:如何获取标有“EDIT”的所有类型的实体。 ACL权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!