source/Listing/Prototypes/DependedModificator.php
protected function loadDependencies(RecordSelector $selector)
    {
        if (empty($this->dependencies)) {
            return $selector;
        }

        foreach ($this->dependencies as $dependency) {
            $selector = $selector->with(
                $dependency->getRelation(),
                $dependency->getOptions()
            );
        }

        return $selector;
    }
protected function loadDependencies(RecordSelector $selector)
    {
        if (empty($this->dependencies)) {
            return $selector;
        }

        foreach ($this->dependencies as $dependency) {
            $selector = $selector->with(
                $dependency->getRelation(),
                $dependency->getOptions()
            );
        }

        return $selector;
    }
protected function loadDependencies ( RecordSelector $ selector ) { if ( empty ( $ this -> dependencies ) ) { return $ selector ; } foreach ( $ this -> dependencies as $ dependency ) { $ selector = $ selector -> with ( $ dependency -> getRelation ( ) , $ dependency -> getOptions ( ) ) ; } return $ selector ; }
Apply dependencies for RecordSelector

@param RecordSelector $selector
@return RecordSelector
Apply dependencies for RecordSelector