lazy collections for exports

This commit is contained in:
denisdulici 2020-03-02 23:13:36 +03:00
parent 0842803777
commit 5cd396f123
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