private function lookupObjectIdentities(array $batch, array $sids, array $oidLookup)
    {
        $ancestorIds = $this->getAncestorIds($batch);
        if (!$ancestorIds) {
            throw new AclNotFoundException('There is no ACL for the given object identity.');
        }

        $sql = $this->getLookupSql($ancestorIds);
        $stmt = $this->connection->executeQuery($sql);

        return $this->hydrateObjectIdentities($stmt, $oidLookup, $sids);
    }
private function lookupObjectIdentities(array $batch, array $sids, array $oidLookup)
    {
        $ancestorIds = $this->getAncestorIds($batch);
        if (!$ancestorIds) {
            throw new AclNotFoundException('There is no ACL for the given object identity.');
        }

        $sql = $this->getLookupSql($ancestorIds);
        $stmt = $this->connection->executeQuery($sql);

        return $this->hydrateObjectIdentities($stmt, $oidLookup, $sids);
    }
private function lookupObjectIdentities ( array $ batch , array $ sids , array $ oidLookup ) { $ ancestorIds = $ this -> getAncestorIds ( $ batch ) ; if ( ! $ ancestorIds ) { throw new AclNotFoundException ( 'There is no ACL for the given object identity.' ) ; } $ sql = $ this -> getLookupSql ( $ ancestorIds ) ; $ stmt = $ this -> connection -> executeQuery ( $ sql ) ; return $ this -> hydrateObjectIdentities ( $ stmt , $ oidLookup , $ sids ) ; }
This method is called for object identities which could not be retrieved
from the cache, and for which thus a database query is required.

@param array $batch
@param array $sids
@param array $oidLookup

@return \SplObjectStorage mapping object identities to ACL instances

@throws AclNotFoundException
This method is called for object identities which could not be retrieved from the cache and for which thus a database query is required .