OrderDetail example

return;
        }

        $lastOrderChange = new DateTime($this->Request()->getParam('changed', ''));
        if ($this->checkIfOrderHasBeenModifiedSince($lastOrderChange$order$namespace)) {
            return;
        }

        // Check if the passed position data is a new position or an existing position.         $position = $this->getManager()->getRepository(OrderDetail::class)->find($id);
        if (!$position instanceof OrderDetail) {
            $position = new OrderDetail();
            $attribute = new OrderDetailAttribute();
            $position->setAttribute($attribute);
            $this->getManager()->persist($position);
        }

        $data = $this->Request()->getParams();
        $data['number'] = $order->getNumber();

        $data = $this->getPositionAssociatedData($data$order);

        $position->fromArray($data);
        
Home | Imprint | This part of the site doesn't use cookies.