source/Spiral/ORM/Entities/Loaders/RelationLoader.php
protected function configureQuery(SelectQuery $query, bool $loadColumns = true, array $outerKeys = []): SelectQuery
    {
        if ($loadColumns) {
            if ($this->isJoined()) {
                //Mounting columns
                $this->mountColumns($query, $this->options['minify']);
            } else {
                //This is initial set of columns (remove all existed)
                $this->mountColumns($query, $this->options['minify'], '', true);
            }
        }

        return parent::configureQuery($query);
    }
protected function configureQuery(SelectQuery $query, bool $loadColumns = true, array $outerKeys = []): SelectQuery
    {
        if ($loadColumns) {
            if ($this->isJoined()) {
                //Mounting columns
                $this->mountColumns($query, $this->options['minify']);
            } else {
                //This is initial set of columns (remove all existed)
                $this->mountColumns($query, $this->options['minify'], '', true);
            }
        }

        return parent::configureQuery($query);
    }
protected function configureQuery ( SelectQuery $ query , bool $ loadColumns = true , array $ outerKeys = [ ] ) : SelectQuery { if ( $ loadColumns ) { if ( $ this -> isJoined ( ) ) { //Mounting columns $ this -> mountColumns ( $ query , $ this -> options [ 'minify' ] ) ; } else { //This is initial set of columns (remove all existed) $ this -> mountColumns ( $ query , $ this -> options [ 'minify' ] , '' , true ) ; } } return parent :: configureQuery ( $ query ) ; }
Configure query with conditions, joins and columns.

@param SelectQuery $query
@param bool        $loadColumns
@param array       $outerKeys Set of OUTER_KEY values collected by parent loader.

@return SelectQuery
Configure query with conditions joins and columns .