I write custom php code and I need to know how to get all records of certain entity accassible for a current user? I injected User, EntityManager and Acl dependencies into my class.
I know, that I can retrieve all not deleted records and iterate over them and check if some of them are accessible, but is there a faster way?
I know, that I can retrieve all not deleted records and iterate over them and check if some of them are accessible, but is there a faster way?
Comment