resolveJoinConditions.php
Table of Contents
Functions
- resolveJoinConditions() : array<int, string>
- The extra predicates a join definition declares over the documents it joins — `Arango::CONDITIONS` — compiled against the loop variable of the join.
Functions
resolveJoinConditions()
The extra predicates a join definition declares over the documents it joins — `Arango::CONDITIONS` — compiled against the loop variable of the join.
resolveJoinConditions(array<string|int, mixed> $definition, string $joinRef, string $parentRef[, array<string|int, mixed> $init = [] ]) : array<int, string>
🔑 One reading for every path that walks a join : the projection
(buildJoinSubquery()) and the filter that goes through the same join
(HasHierarchicalFilter). A filter that ignored them retained a parent by a
document the projection masks — the very read by ricochet the conditions exist to
close.
Two shapes : a plain array of AQL predicate strings, or a callable returning one. The callable receives three arguments, always — the join loop variable, the parent document reference, and the request-level init ; PHP discards the surplus handed to a userland callable, so a one- or two-parameter closure keeps working.
Parameters
- $definition : array<string|int, mixed>
-
The join definition (reads
AQL::CONDITIONS). - $joinRef : string
-
The AQL variable of the joined document.
- $parentRef : string
-
The AQL variable of the parent document.
- $init : array<string|int, mixed> = []
-
The request-level init.
Tags
Return values
array<int, string> —The predicates — empty when nothing is declared.