mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #960] [MERGED] allow passing EntityManagerInterface when creating a HelperSet #8965
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/960
Author: @drealecs
Created: 2/23/2014
Status: ✅ Merged
Merged: 3/23/2014
Merged by: @beberlei
Base:
master← Head:fixes-EntityManagerInterface📝 Commits (1)
1fe6dbcallow passing EntityManagerInterface when creating a HelperSet📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php(+3 -3)📄 Description
I've was "extending" EntityManager by decoration-wrapping and was trying to pass my EntityManager to
ConsoleRunner::createHelperSet()and the type-hinting didn't allow it.This fix will allow the
$entityManagerparameter to be an instance ofEntityManagerInterfaceinstead ofEntityManager🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.