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

Manually merge 3.0.x into master #4038

Merged
merged 16 commits into from
May 30, 2020
Merged

Manually merge 3.0.x into master #4038

merged 16 commits into from
May 30, 2020

Conversation

morozov
Copy link
Member

@morozov morozov commented May 29, 2020

Q A
Type improvement
BC Break no

morozov and others added 15 commits May 25, 2020 15:06
Deprecated the concept of the fetch mode
The methods has more limitations and caveats than provides real use:

1. It fetches all data in memory which is often inefficient (see doctrine#2718).
2. It fetches rows in memory one by one instead of using `fetchAll()`.
4. It doesn't allow to specify the statement fetch mode since it's instantiated internally.
5. It can be easily replaced with:
   ```php
   foreach ($conn->executeQuery($query, $params, $types) as $value) {
      yield $function($value);
   }
   ```
Backport removal of some deprecated APIs
Replace the concept of statement fetch modes with the explicit API
Moved rowCount() from Statement to ResultStatement
@greg0ire
Copy link
Member

Please push @morozov 🙂

@morozov morozov merged commit a7aa976 into doctrine:master May 30, 2020
@morozov morozov self-assigned this Jun 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants