/** * Fetch and return the current row of this query's result * * @return object */ public function current() { $row = $this->iterator->current(); if ($this->repository->providesValueConversion($this->target)) { foreach ($this->getColumns() as $alias => $column) { if (!is_string($alias)) { $alias = $column; } $row->{$alias} = $this->repository->retrieveColumn($this->target, $alias, $row->{$alias}, $this); } } return $row; }