I am replacing the deprecated functions of the entityQuery
but when I replaced it, there is condition where I need to use getStorage
from commerce_product_variation
custom field and it throws out query error where the fields are not found :
below is the query that I am altering :
$query = Drupal::entityTypeManager()->getStorage('commerce_product_variation')->getQuery()->condition('field_item', $argumentID); $ids = $query->condition('status', 1)->execute();
anything that I need to use to allow this to happen?
cheers!