Skip to content

Zend Db Deprecated?

We’re just updating our development site from 2.4.6-p3 to 2.4.6-p4.
One of our modules seems to prevent a reindex from being completed.
The error is:

Error: Class "ZendDbSqlSelect" not found in /home/site/public/app/code/Vendor/Module/Model/ResourceModel/Indexer/Bestseller.php:193

Line 193 is: $select->reset(Select::COLUMNS)->columns($columns);

I presume Zend_Db has been deprecated and moved to Laminas like previous updates?

I have tried replacing:

use ZendDbSqlSelect;

with

use LaminasDbSqlSql;

And instances of

new Zend_Db_Expr

with

new LaminasDbSqlExpression

But then I recieve the error:

Error: Class "VendorModuleModelResourceModelIndexerSelect" not found in /home/site/public/app/code/Vendor/Module/Model/ResourceModel/Indexer/Bestseller.php:195

Any idea what changes need to be made here?
Thank you.