Skip to content

Deep State

Compare
Choose a tag to compare
@curiosity26 curiosity26 released this 10 Jun 21:43
· 3 commits to master since this release
4ad8796

When using findBy or findByOne methods on the AclHelperAgent, you can now filter by using complex criteria such as LIKE or BETWEEN and even filter on values of deep associations.

$agent->findBy($identity, $mask, [
    'children.createdAt' => ['BETWEEN' => [$yesterdayDateTime, $todayDateTime]],
    'children.name' => ['IN' => ['Laura', 'David']],
    'children.sibling' => ['!=' => 1],
]);

Also, allows for the user of using class-level ACLs in queries. This is turned on by default. This may differ from the default behavior of the ACL Bundle, which allows for Class-level security definitions but doesn't always seem to trust them.