Problem/Motivation
StatementInterface objects are traversable and the concrete classes implement \Iterator. This is likely an historical extension of the PDOStatement.
However, conceptually statements should not be iterated - that's a property of the result set, that is now represented by ResultBase objects.
Proposed resolution
In this issue, make ResultBase iterable, and let StatementInterface implementation rely on that for iteration.
Later we may discuss whether we should deprecate and then remove iterability of the statements themselves.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3592863
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nicxvan commentedComment #4
mondrakeComment #5
mondrake