Merge pull request #1321 from denisdulici/master

Lazy collections for exports
This commit is contained in:
Denis Duliçi 2020-03-02 23:18:20 +03:00 committed by GitHub
commit c9582469b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 18 additions and 18 deletions

View File

@ -15,7 +15,7 @@ class Transactions extends Export
$model->whereIn('id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class Items extends Export
$model->whereIn('id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class Payments extends Export
$model->whereIn('id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class BillHistories extends Export
$model->whereIn('bill_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class BillItemTaxes extends Export
$model->whereIn('bill_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class BillItems extends Export
$model->whereIn('bill_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class BillTotals extends Export
$model->whereIn('bill_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class BillTransactions extends Export
$model->whereIn('document_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class Bills extends Export
$model->whereIn('id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class Vendors extends Export
$model->whereIn('id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function fields(): array

View File

@ -15,7 +15,7 @@ class Customers extends Export
$model->whereIn('id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function fields(): array

View File

@ -15,7 +15,7 @@ class Revenues extends Export
$model->whereIn('id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class InvoiceHistories extends Export
$model->whereIn('invoice_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class InvoiceItemTaxes extends Export
$model->whereIn('invoice_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class InvoiceItems extends Export
$model->whereIn('invoice_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class InvoiceTotals extends Export
$model->whereIn('invoice_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class InvoiceTransactions extends Export
$model->whereIn('document_id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array

View File

@ -15,7 +15,7 @@ class Invoices extends Export
$model->whereIn('id', (array) $this->ids);
}
return $model->get();
return $model->cursor();
}
public function map($model): array