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

Added runtime deprecation to UnitOfWork::commit() and clear() #9327

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jan 4, 2022

Part of #8459. Passing an entity or a set of them to UnitOfWork::commit() is deprecated since ORM 2.7 (along with EntityManager::flush($entity)), but no runtime deprecation has been triggered so far when calling the UoW directly.

Same for UnitOfWork::clear().

This PR attempts to correct that.

@derrabus derrabus added this to the 2.11.0 milestone Jan 4, 2022
@derrabus derrabus changed the title Added runtime deprecation to UnitOfWork::commit() Added runtime deprecation to UnitOfWork::commit() and clear() Jan 4, 2022
@derrabus derrabus merged commit 844ce77 into doctrine:2.11.x Jan 5, 2022
@derrabus derrabus deleted the deprecate/uow-commit-with-entity branch January 5, 2022 07:14
derrabus added a commit to derrabus/orm that referenced this pull request Jan 5, 2022
* 2.11.x:
  Added runtime deprecation to `UnitOfWork::commit()` and `clear()` (doctrine#9327)
  Document return type of getEntityState() (doctrine#9328)
  Fix broken type declaration (doctrine#9330)
  Enable some previously disabled PHPCS rules (doctrine#9324)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants