public function includeInvoices(Vendor $vendor) { $transformer = new InvoiceTransformer($this->account, $this->serializer); return $this->includeCollection($vendor->invoices, $transformer, ENTITY_INVOICE); }