loadCustomerGroup example


    public function load(array $args): ?CustomerGroupEntity
    {
        Feature::triggerDeprecationOrThrow(
            'v6_6_0_0',
            Feature::deprecatedMethodMessage(self::class, __METHOD__, '6.6.0.0')
        );

        [$id$context] = $args;
        $criteria = new Criteria([$id]);

        return $this->loadCustomerGroup($criteria$context$id);
    }

    private function lazyLoad(StorableFlow $storableFlow): ?CustomerGroupEntity
    {
        $id = $storableFlow->getStore(CustomerGroupAware::CUSTOMER_GROUP_ID);
        if ($id === null) {
            return null;
        }

        $criteria = new Criteria([$id]);

        
Home | Imprint | This part of the site doesn't use cookies.