Skip to content

Commit

Permalink
Add something of a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Apr 11, 2024
1 parent e036ba6 commit ad63a22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EventSubscriber/TaggingEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit ad63a22

Please sign in to comment.