public function applyCategory()
    {
        $this->joinCategoryData();
        $this->removeAdditionalTableDuplicateFields();
        $this->getSelect()->columns($this->getAdditionalColumns());

        $subSelect = new \Zend_Db_Expr(sprintf("(%s)", (string) $this->getSelect()));

        $this->_select = $this->getConnection()->select()->from($subSelect);

        return $this;
    }
public function applyCategory()
    {
        $this->joinCategoryData();
        $this->removeAdditionalTableDuplicateFields();
        $this->getSelect()->columns($this->getAdditionalColumns());

        $subSelect = new \Zend_Db_Expr(sprintf("(%s)", (string) $this->getSelect()));

        $this->_select = $this->getConnection()->select()->from($subSelect);

        return $this;
    }
public function applyCategory ( ) { $ this -> joinCategoryData ( ) ; $ this -> removeAdditionalTableDuplicateFields ( ) ; $ this -> getSelect ( ) -> columns ( $ this -> getAdditionalColumns ( ) ) ; $ subSelect = new \ Zend_Db_Expr ( sprintf ( "(%s)" , ( string ) $ this -> getSelect ( ) ) ) ; $ this -> _select = $ this -> getConnection ( ) -> select ( ) -> from ( $ subSelect ) ; return $ this ; }
Apply current category settings to the collection.

@return \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\FilterableAttribute\Category\Collection
Apply current category settings to the collection .