protected function configureSelector(
        DocumentSelector $selector,
        array $aggregation
    ): DocumentSelector {
        //@see AggregationDefinition
        $query = $aggregation[2];

        //Mounting selection values
        array_walk_recursive($query, function (&$value) {
            if (strpos($value, 'self::') === 0) {
                $value = $this->findValue(substr($value, 6));
            }
        });

        return $selector->where($query);
    }
protected function configureSelector(
        DocumentSelector $selector,
        array $aggregation
    ): DocumentSelector {
        //@see AggregationDefinition
        $query = $aggregation[2];

        //Mounting selection values
        array_walk_recursive($query, function (&$value) {
            if (strpos($value, 'self::') === 0) {
                $value = $this->findValue(substr($value, 6));
            }
        });

        return $selector->where($query);
    }
protected function configureSelector ( DocumentSelector $ selector , array $ aggregation ) : DocumentSelector { //@see AggregationDefinition $ query = $ aggregation [ 2 ] ; //Mounting selection values array_walk_recursive ( $ query , function ( & $ value ) { if ( strpos ( $ value , 'self::' ) === 0 ) { $ value = $ this -> findValue ( substr ( $ value , 6 ) ) ; } } ) ; return $ selector -> where ( $ query ) ; }
Configure DocumentSelector using aggregation schema.

@param DocumentSelector $selector
@param array            $aggregation

@return DocumentSelector
Configure DocumentSelector using aggregation schema .