Skip to content

Conversation

@morozov
Copy link
Member

@morozov morozov commented May 27, 2020

Q A
Type improvement
BC Break yes

See #3507, #3809, #3823.

greg0ire
greg0ire previously approved these changes May 27, 2020
morozov added 3 commits May 26, 2020 23:04
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);
   }
   ```
@morozov
Copy link
Member Author

morozov commented May 27, 2020

@greg0ire sorry, this had to be rebased due to a conflict.

@greg0ire
Copy link
Member

No problem!

@greg0ire greg0ire merged commit 67944fc into doctrine:3.0.x May 27, 2020
@greg0ire greg0ire self-assigned this May 27, 2020
@morozov morozov deleted the remove-deprecations branch May 27, 2020 17:21
@morozov morozov added this to the 3.0.0 milestone Jun 7, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants