I am getting warning as
"Direct object instantiation (object of \Zend_Db_Expr) is discouraged in Magento2"
when I did
Please anyone can help me to resolve this warning.
I am getting issue in below line.
$Qry = $connection->select() ->from($this->resourceConfig->getTable($tableName), [new \Zend_Db_Expr('COUNT(*)')]) ->where('store=?', $storeId);
Thanks in Advance