<?phpnamespace LenzPlatformClp\Subscriber;use Shopware\Core\Content\Product\Events\ProductGatewayCriteriaEvent;use Symfony\Component\EventDispatcher\EventSubscriberInterface;class ProductGatewayCriteriaEventSubscriber implements EventSubscriberInterface{ public static function getSubscribedEvents() { return [ ProductGatewayCriteriaEvent::class => 'onEvent' ]; } public function onEvent(ProductGatewayCriteriaEvent $event) { $event->getCriteria()->addAssociation('lenzPlatformClp'); }}