public function prepareIterator(Model $m)
{
try {
$export = $this->action($m, 'select');
return $export->execute();
} catch (\PDOException $e) {
throw new Exception(['Unable to execute iteration query', 'query' => $export->getDebugQuery(false), 'model' => $m, 'conditions' => $m->conditions], null, $e);
}
}