public function getSearchContainersFromOptimizerId($optimizerId)
    {
        $connection = $this->getConnection();

        $select = $connection->select();

        $select->from(
            $this->getTable(OptimizerInterface::TABLE_NAME_SEARCH_CONTAINER),
            [OptimizerInterface::SEARCH_CONTAINER, 'apply_to']
        )->where(OptimizerInterface::OPTIMIZER_ID . ' = ?', (int) $optimizerId);

        return $connection->fetchPairs($select);
    }
public function getSearchContainersFromOptimizerId($optimizerId)
    {
        $connection = $this->getConnection();

        $select = $connection->select();

        $select->from(
            $this->getTable(OptimizerInterface::TABLE_NAME_SEARCH_CONTAINER),
            [OptimizerInterface::SEARCH_CONTAINER, 'apply_to']
        )->where(OptimizerInterface::OPTIMIZER_ID . ' = ?', (int) $optimizerId);

        return $connection->fetchPairs($select);
    }
public function getSearchContainersFromOptimizerId ( $ optimizerId ) { $ connection = $ this -> getConnection ( ) ; $ select = $ connection -> select ( ) ; $ select -> from ( $ this -> getTable ( OptimizerInterface :: TABLE_NAME_SEARCH_CONTAINER ) , [ OptimizerInterface :: SEARCH_CONTAINER , 'apply_to' ] ) -> where ( OptimizerInterface :: OPTIMIZER_ID . ' = ?' , ( int ) $ optimizerId ) ; return $ connection -> fetchPairs ( $ select ) ; }
Retrieve Search Containers for a given optimizer.

@param int $optimizerId The optimizer Id

@return array
Retrieve Search Containers for a given optimizer .