Symfony2: ACL - Using findAcls()

I am having a problem with attempting to batch load ACLs for a specific object (in the example below it is the Account class.)

If I am using the following code, even though acl_object_identities is populated, the returning array that should be populated is empty. What am I missing?

        $oids = array();
    foreach ($accounts as $account) {
        $oid = ObjectIdentity::fromDomainObject($account);
        $oids[] = $oid;


$accounts holds the array of entities found with a findAll().


Well, it looks like the ACLs are pulled after all with the key being an iterative follow-up to see what permissions are in place.

foreach ($accounts as $account) {
    if ($securityContext->isGranted('EDIT', $account)) {
        // Granted, do something with it
    } else {
        // Not Granted

So, it seems that everything is working a designed.

Need Your Help

Why doesn't left:0 work here?

html css css-position

I was trying to make a sticky div inside the body, that has css like:

MongoDB Hadoop connector streaming not running

mongodb hadoop hadoop-streaming mongodb-hadoop

I want to launch the MongoDB Hadoop Streaming connector, so I downloaded a compatible version of Hadoop (the 2.2.0) (see