ContactCompanyBinding
Table of Contents
Methods
- __construct() : mixed
- bindToOrders() : void
- Bulk bind a contact/company to orders
- rebind() : void
- Replace all bindings of a contact/company to another ones
- unbind() : void
- Remove all bindings of a contact/company
- unbindFromOrders() : void
- Bulk remove bindings of a contact/company from list of orders
Methods
__construct()
public
__construct(int $entityTypeId) : mixed
Parameters
- $entityTypeId : int
bindToOrders()
Bulk bind a contact/company to orders
public
bindToOrders(int $entityId, array<string|int, mixed> $orderIds) : void
Parameters
- $entityId : int
- $orderIds : array<string|int, mixed>
Tags
rebind()
Replace all bindings of a contact/company to another ones
public
rebind(int $oldEntityId, int $newEntityId) : void
Parameters
- $oldEntityId : int
- $newEntityId : int
unbind()
Remove all bindings of a contact/company
public
unbind(int $entityId) : void
Parameters
- $entityId : int
Tags
unbindFromOrders()
Bulk remove bindings of a contact/company from list of orders
public
unbindFromOrders(int $entityId, array<string|int, mixed> $orderIds) : void
Parameters
- $entityId : int
- $orderIds : array<string|int, mixed>