/** * @param Walk $path * @return JoinWalk */ protected function getJoinWalk(Walk $path) { $walk = new JoinWalk($path, $this->em->createQueryBuilder(), new AliasGenerator()); foreach ($this->rootCriteria as $criteria) { $walk->whereRootFieldEq($criteria['column'], $criteria['value']); } return $walk; }