$this->cacheInvalidator->
invalidate([CachedRuleLoader::CACHE_KEY
]);
} /**
* @param list<string> $ids
*/
public function update(array
$ids): void
{ $associationFields =
$this->
getAssociationFields();
$areas =
$this->
getAreas($ids,
$associationFields);
$update =
new RetryableQuery( $this->connection,
$this->connection->
prepare('UPDATE `rule` SET `areas` = :areas WHERE `id` = :id'
) );
/** @var array<string, string[]> $associations */
foreach ($areas as $id =>
$associations) { $areas =
[];
foreach ($associations as $propertyName =>
$match) {