Skip to content

Instantly share code, notes, and snippets.

View rejsmont's full-sized avatar
💉
Pfized Twice

Radoslaw Ejsmont rejsmont

💉
Pfized Twice
  • CRI
  • Paris, France
View GitHub Profile
@rejsmont
rejsmont / AclFilter.php
Last active February 14, 2019 08:10
ACL filter for Doctrine QueryBuilder and Query. Supports multiple filters applied to a single query, entity inheritance and role hierarchies.
<?php
/*
* Copyright 2013 Radoslaw Kamil Ejsmont <[email protected]>
*
* Original code by mailaneel is available at
* https://gist.github.com/mailaneel/1363377
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.