Exam4Training

An Adobe Commerce developer is working on a module to manage custom brand entities and wants to replicate the following SQL query using SearchCriteria:

An Adobe Commerce developer is working on a module to manage custom brand entities and wants to replicate the following SQL query using SearchCriteria:

A)

B)

C)

A . Option A
B. Option B
C. Option C

Answer: B

Explanation:

The following SearchCriteria query will replicate the SQL query:

$searchCriteria = new MagentoFrameworkApiSearchCriteriaBuilder(); $searchCriteria->addFilter(‘name’, ‘Brand 1’, ‘eq’); $searchCriteria->addFilter(‘status’, 1, ‘eq’);

$brandCollection = $this->brandRepository->getList($searchCriteria);

Exit mobile version