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

Replace EntityManager type-hint with EntityManagerInterface #621

Closed

Conversation

EmmanuelVella
Copy link
Contributor

Subject

This PR fixes an issue when using an entity manager decorator (same as #149).

I am targeting this branch, because it's BC (EntityManagerInterface was introduced in doctrine orm 2.4, and version ^2.7 is required in composer.json.

Changelog

### Fixed
- Replaced AuditManager::createAuditReader(EntityManager $em) type-hint with EntityManagerInterface

@EmmanuelVella EmmanuelVella marked this pull request as ready for review April 22, 2024 16:32
* @return AuditReader
*/
public function createAuditReader(EntityManager $em)
public function createAuditReader(EntityManagerInterface $em)
Copy link

@dmaicher dmaicher Apr 22, 2024

Choose a reason for hiding this comment

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

This is a BC break however. Classes which are extending AuditReader and overwriting createAuditReader will break due to this change.

Hence we planned to do this in the next major release as the comment above suggested.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure I understand. I'm closing the PR. Thank you !

@EmmanuelVella EmmanuelVella deleted the entity-manager branch April 23, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants