Exemplo n.º 1
0
 /**
  * Return list of relations that were not selected in main query.
  * @param DbModel[] $models
  * @return array
  */
 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);
     }
 }