Magento 2
-
- April 24, 2025
I am running a magento 2.4 project but current not in position to update mysql version. any way to skip that error ?
Magento 2 error Current version of RDBMS is not supported. Used Version: 10.1.37-MariaDB. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10.4)
-
- March 06, 2024
This article shows how we can search Magento Repositories using SearchCriteriaBuilder that implements SearchCriteriaInterface. An example is provided of how we can perform search on Product repository in Magento. Similarly, we can search for other entities like Category, Customer, Order, Invoice, CMS Page, CMS Block, etc.
We can add different conditions to build custom search criteria.
Filters
Filter class is used to add custom field, value, and condition type to the search criteria.
$filter ->setField("name") ->setValue("%laptop%") ->setConditionType("like");
condition_type
is optional.- If
condition_type
is not provided then the defaultcondition_type
is set aseq
.
Different condition types:
CONDITION NOTES eq Equals gt Greater than gteq Greater than or equal lt Less than lteq Less than or equal moreq More or equal neq Not equal in The value can contain a comma-separated list of values. nin Not in. The value can contain a comma-separated list of values. like The value can contain the