Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AbstractQuery::toIterable() to compatible with Doctrine ORM 3.0 #306

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

peter-gribanov
Copy link
Member

Method AbstractQuery::iterate() is deprecated and will be removed in Doctrine ORM 3.0.

@peter-gribanov peter-gribanov self-assigned this Jul 13, 2021
@peter-gribanov peter-gribanov added this to the Release 2.0.2 milestone Jul 13, 2021
@peter-gribanov peter-gribanov merged commit 148a7b8 into Happyr:2.x Jul 13, 2021
@peter-gribanov peter-gribanov deleted the toIterable branch July 13, 2021 15:59
Comment on lines +182 to +184
foreach ($query->toIterable() as $key => $row) {
yield $key => $row;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be replaced with yield from?

Suggested change
foreach ($query->toIterable() as $key => $row) {
yield $key => $row;
}
yield from $query->toIterable();

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. You're right. This would be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants