Update EntityManager.php#776
Update EntityManager.php#776thbourlove wants to merge 1 commit intodoctrine:masterfrom thbourlove:patch-1
Conversation
|
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DDC-2651 We use Jira to track the state of pull requests and the versions they got |
|
I think it has already been discussed many times. EntityManager is not meant to be extended, that's why the final keyword is used :) You'd better use composition/decorators if you want to extend its functionalities. |
|
@docteurklein |
|
also, you can't mock it directly. (but you still can mock its interface). It's still not a reason to remove the final keyword. But, concerning ctags, vim & co, which I use everyday, I don't have problems with it. |
|
@doctrinebot |
|
oh, sorry, I haven't seen it is commented out! |
|
See the commit here: acc8b61 |
|
@thbourlove The class was previously marked as final. It has been commented to allow for mocking, but it has been kept in a comment to show that you should consider it as final. Extending the entity manager is not a supported extension point |
|
And if these tools fail to work because of a comment in the file, it means they have a bug and you should report it to their team |
|
@thbourlove Can you add a |
No description provided.