This regenerates the ancestor table which is used for fast read access.
AclInterface $acl:
void
private function regenerateAncestorRelations(AclInterface $acl) {
$pk = $acl
->getId();
$this->connection
->executeQuery($this
->getDeleteObjectIdentityRelationsSql($pk));
$this->connection
->executeQuery($this
->getInsertObjectIdentityRelationSql($pk, $pk));
$parentAcl = $acl
->getParentAcl();
while (null !== $parentAcl) {
$this->connection
->executeQuery($this
->getInsertObjectIdentityRelationSql($pk, $parentAcl
->getId()));
$parentAcl = $parentAcl
->getParentAcl();
}
}