public function getExtraRelations($models) {
        if (!$this->relationsParser){
            return [];
        }
        $relationsLeft = $this->relationsParser->getRelationsToBeSelectedSeparately();
        foreach ($relationsLeft as $path => $details){
            $this->relationsParser->getChildrenForModels($models, $path, $details, $this->fields);
        }

    }
public function getExtraRelations($models) {
        if (!$this->relationsParser){
            return [];
        }
        $relationsLeft = $this->relationsParser->getRelationsToBeSelectedSeparately();
        foreach ($relationsLeft as $path => $details){
            $this->relationsParser->getChildrenForModels($models, $path, $details, $this->fields);
        }

    }
public function getExtraRelations ( $ models ) { if ( ! $ this -> relationsParser ) { return [ ] ; } $ relationsLeft = $ this -> relationsParser -> getRelationsToBeSelectedSeparately ( ) ; foreach ( $ relationsLeft as $ path => $ details ) { $ this -> relationsParser -> getChildrenForModels ( $ models , $ path , $ details , $ this -> fields ) ; } }
Return list of relations that were not selected in main query.
@param DbModel[] $models
@return array
Return list of relations that were not selected in main query .