Log in
Model

Condition

Magento\Catalog\Model\Product\Condition

What it does

This class represents a condition for filtering product collections based on a join table and primary key field.

Developers use it to apply conditional filtering to product collections by joining additional tables or to retrieve IDs from related tables that match specific criteria, commonly used in catalog rules and product relationships.

Public Methods

  • applyToCollection()
  • getIdsSelect()