/**
  * @param \Orm\Zed\Invoice\Persistence\PavInvoice $invoiceEntity
  * @param \Generated\Shared\Transfer\InvoiceTransfer $invoiceTransfer
  *
  * @return void
  */
 protected function setExpenseItems(PavInvoice $invoiceEntity, InvoiceTransfer $invoiceTransfer)
 {
     $expenseItems = $invoiceEntity->getInvoiceExpenses();
     foreach ($expenseItems as $expenseItem) {
         $expenseItemTransfer = new InvoiceExpenseTransfer();
         $expenseItemTransfer->fromArray($expenseItem->toArray(), true);
         $invoiceTransfer->addExpense($expenseItemTransfer);
     }
 }