Skip to content

Commit

Permalink
Remove zend_db_select usage
Browse files Browse the repository at this point in the history
  • Loading branch information
supercid committed Sep 26, 2023
1 parent 10d9137 commit 667585c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Model/ResourceModel/Magento/Category/CollectionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
use Magento\Sales\Api\Data\EntityInterface;
use Magento\Store\Model\Store;
use Magento\Catalog\Model\ResourceModel\Category\Collection as CategoryCollection;
use Zend_Db_Select;
use Magento\Framework\DB\Select;

/**
* A builder class for building product collection with the most common filters
Expand Down Expand Up @@ -158,7 +158,7 @@ public function reset()
*/
public function init()
{
$this->categoryCollection->clear()->getSelect()->reset(Zend_Db_Select::WHERE);
$this->categoryCollection->clear()->getSelect()->reset(Select::WHERE);
return $this;
}

Expand Down
4 changes: 2 additions & 2 deletions Model/ResourceModel/Magento/Product/CollectionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
use Magento\Store\Model\Store;
use Nosto\Tagging\Model\ResourceModel\Magento\Product\Collection as ProductCollection;
use Nosto\Tagging\Helper\Data as NostoHelperData;
use Zend_Db_Select;
use Magento\Framework\DB\Select;

/**
* A builder class for building product collection with the most common filters
Expand Down Expand Up @@ -203,7 +203,7 @@ public function reset()
*/
public function init()
{
$this->productCollection->clear()->getSelect()->reset(Zend_Db_Select::WHERE);
$this->productCollection->clear()->getSelect()->reset(Select::WHERE);
return $this;
}

Expand Down
4 changes: 2 additions & 2 deletions Setup/Patch/Data/AddCustomerReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\Patch\DataPatchInterface;
use Nosto\Tagging\Helper\Data as NostoHelperData;
use Zend_Validate_Exception;
use Magento\Framework\Validator\ValidateException;
use Exception;

class AddCustomerReference implements DataPatchInterface
Expand Down Expand Up @@ -102,7 +102,7 @@ public function apply()

/**
* @throws LocalizedException
* @throws Zend_Validate_Exception
* @throws ValidateException
* @throws Exception
*/
public function addCustomerReference()
Expand Down

0 comments on commit 667585c

Please sign in to comment.