setCustomerId example

$codeId = (int) $this->Request()->getParam('id');
        $code = $this->get(ModelManager::class)->getRepository(Code::class)->find($codeId);

        if (!$code instanceof Code) {
            $this->View()->assign(['success' => false]);

            return;
        }

        $code->setCashed($this->Request()->getParam('cashed'));
        $code->setCode($this->Request()->getParam('code'));
        $code->setCustomerId($this->Request()->getParam('customerId'));

        $this->get(ModelManager::class)->persist($code);
        $this->get(ModelManager::class)->flush($code);

        $this->View()->assign(['success' => true]);
    }

    /** * exports all voucher codes via csv * * @return void */
$address->setZipcode('billing-address-zipcode');
        $address->setCity('billing-address-city');
        $address->setCountryId('billing-address-country-id');

        return $address;
    }

    private function getOrderCustomer(): OrderCustomerEntity
    {
        $customer = new OrderCustomerEntity();
        $customer->setId('order-customer-id');
        $customer->setCustomerId('customer-id');
        $customer->setEmail('order-customer-email');
        $customer->setSalutationId('order-customer-salutation-id');
        $customer->setFirstName('order-customer-first-name');
        $customer->setLastName('order-customer-last-name');
        $customer->setCustomerNumber('order-customer-number');

        return $customer;
    }

    private function getOrderAddress(): OrderAddressEntity
    {
        
Home | Imprint | This part of the site doesn't use cookies.