loadOrderTransaction example


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

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

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

    private function lazyLoad(StorableFlow $storableFlow): ?OrderTransactionEntity
    {
        $id = $storableFlow->getStore(OrderTransactionAware::ORDER_TRANSACTION_ID);
        if ($id === null) {
            return null;
        }

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

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