Skip to content

Add extra allowed interface to EntityAliasToClassConstantReferenceRector#3155

Merged
TomasVotruba merged 1 commit intorectorphp:masterfrom
acrobat:add-extra-doctrine-alias-class
Apr 10, 2020
Merged

Add extra allowed interface to EntityAliasToClassConstantReferenceRector#3155
TomasVotruba merged 1 commit intorectorphp:masterfrom
acrobat:add-extra-doctrine-alias-class

Conversation

@acrobat
Copy link
Copy Markdown
Contributor

@acrobat acrobat commented Apr 10, 2020

This is an extension to the changes in #3146. I've discovered some other usages which were not covered by this rector. So these extra interfaces will allow to fix these cases also.

$this->getDoctrine()->getRepository();

This is also possible as the manager registry will select to correct manager based on the provided entity.

https://github.com/doctrine/persistence/blob/fdaaa50cb23760c9da2d6dcab9f10caa34d92b61/lib/Doctrine/Persistence/AbstractManagerRegistry.php#L226-L233

@TomasVotruba TomasVotruba merged commit a25adb1 into rectorphp:master Apr 10, 2020
@TomasVotruba
Copy link
Copy Markdown
Member

Thank you very much

@acrobat acrobat deleted the add-extra-doctrine-alias-class branch April 10, 2020 11:51
TomasVotruba added a commit that referenced this pull request Dec 5, 2022
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