开发者

Symfony2: how to get all entities of one type which are marked with "EDIT" ACL permission?

开发者 https://www.devze.com 2023-03-10 03:43 出处:网络
Can som开发者_运维知识库eone tell me how to get all entities of one type which are marked with \"EDIT\" ACL permission?

Can som开发者_运维知识库eone 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 don't believe there's a default way of doing this. What you could do is to write your own service that adds a Filter to your Doctrine DQL queries.

For more info, see:

  • https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/filters.html
  • https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/cookbook/dql-custom-walkers.html

Hope this helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消