public function fetchAssoc($path) { $rows = array_map('iterator_to_array', $this->fetchAll()); return Nette\Utils\Arrays::associate($rows, $path); }
/** * Fetches all rows and returns associative tree. * * @param $path string associative descriptor * @return array */ public function fetchAssoc($path) { return $this->selection->fetchAssoc($path); }