Memory usage optimized
Get 20 000 entitys with custom fields
Memomy usage: ~130 mb
Example:
$companies = $amo->companies()->maxRows(20000)->recursiveCall();
$companies->each(function(&$company) {
// handle item
$company->id;
$company->cf('Name')->getValue();
// after handled clear mem for this item
$company = null;
});
// done