CoolCMS API

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

Methods

On this page

Search results