setShipped example

unset($detail['statusId']);

            $tax = $this->getContainer()->get(ModelManager::class)->find(Tax::class$detail['taxId']);
            if (!$tax) {
                throw new NotFoundException(sprintf('Tax by id %s not found', $detail['taxId']));
            }
            $detailModel->setTax($tax);
            unset($detail['taxId']);

            // Set shipped flag             if (\array_key_exists('shipped', $detail)) {
                $detailModel->setShipped($detail['shipped']);
            }

            $violations = $this->getManager()->validate($detailModel);
            if ($violations->count() > 0) {
                throw new ValidationException($violations);
            }

            $detail = $detailModel;
        }
        unset($detail);

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