EshopInvoiceOrderNumberResolver
in package
implements
InvoiceOrderNumberResolver
FinalYes
Returns the e-shop order number for the PDF invoice ({@see InvoiceOrderNumberResolver}).
IMPORTANT: deliberately one scalar query, not OrderManager::find(): the PDF generator runs on
already materialized invoice arguments and every Api read does UnitOfWork::clear(), so loading
the whole order would detach entities the caller still works with.
Table of Contents
Interfaces
- InvoiceOrderNumberResolver
- Resolves the number of the order a document originates from, for the PDF (`$orderNumber` in templates).
Properties
- $em : EntityManagerInterface
Methods
- __construct() : mixed
- resolve() : string|null
Properties
$em read-only
private
EntityManagerInterface
$em
Methods
__construct()
public
__construct(EntityManagerInterface $em) : mixed
Parameters
- $em : EntityManagerInterface
resolve()
public
resolve(int $orderId) : string|null
Parameters
- $orderId : int