From ad63a229a825227255b9a46f0683ce2d51253517 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Thu, 11 Apr 2024 11:34:13 -0300 Subject: [PATCH] Add something of a comment. --- src/EventSubscriber/TaggingEventSubscriber.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/EventSubscriber/TaggingEventSubscriber.php b/src/EventSubscriber/TaggingEventSubscriber.php index 8d86a1e..0044ca5 100644 --- a/src/EventSubscriber/TaggingEventSubscriber.php +++ b/src/EventSubscriber/TaggingEventSubscriber.php @@ -42,6 +42,9 @@ public function inclusion(TagInclusionEvent $event) : void { * The event being handled. */ public function exclusion(TagExclusionEvent $event) : void { + // With traversing a single level of the hierarchy, it makes sense to + // constrain to the same node as matched in the "inclusion", instead of + // again referencing the other aliased columns dealing with node IDs. $event->getCondition()->where("{$event->getUnexpiredAlias()}.embargoed_node = {$event->getEmbargoAlias()}.embargoed_node"); }