Skip to content

Adding a lost parameter in ObjectRepository#741

Closed
andrewprofile wants to merge 1 commit intodoctrine:masterfrom
andrewprofile:master
Closed

Adding a lost parameter in ObjectRepository#741
andrewprofile wants to merge 1 commit intodoctrine:masterfrom
andrewprofile:master

Conversation

@andrewprofile
Copy link

@andrewprofile andrewprofile commented Sep 22, 2016

Based on the documentation EntityRepository I noticed there findOneBy method has two parameters. But when I tried to use it with the second parameter, my IDE PhpStorm reported the mistake that this method has only one parameter. This is due to the fact that it implements interface ObjectRepository without this parameter. Therefore, I decided to add this parameter for better code completion.

Ps. Sorry for my bad english

@Ocramius
Copy link
Member

This can't be implemented, as it is a BC break in the interface, sorry...

@andrewprofile
Copy link
Author

Yes, You are right it will BC break for Doctrine 2.1.x - 2.2. I'm sorry, I did not check it before.

@stof
Copy link
Member

stof commented Sep 23, 2016

No, it breaks BC for anyone implementing the interface today, noit only old ORM versions (the ORM is not the only implementer)

@andrewprofile
Copy link
Author

andrewprofile commented Sep 24, 2016

Ok, I understand, thanks. Sorry for the mistake. Earlier I thought it was a good idea but you are right, it was a mistake.

@Ocramius
Copy link
Member

@andrewprofile we have our hands tied on basically anything that involves changing interfaces, sorry :-\

@andrewprofile
Copy link
Author

Ok, Thanks for your feedback.

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.

3 participants