Sonata\Exporter\Source\DoctrineDBALConnectionSourceIterator::rewind PHP Method

rewind() public method

public rewind ( )
    public function rewind()
    {
        if ($this->statement) {
            throw new InvalidMethodCallException('Cannot rewind a PDOStatement');
        }
        $this->statement = $this->connection->prepare($this->query);
        $this->statement->execute($this->parameters);
        $this->next();
    }
DoctrineDBALConnectionSourceIterator