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

Prove bug with inverseJoinColumns #1142

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

fezfez
Copy link
Contributor

@fezfez fezfez commented Nov 4, 2021

No description provided.

@samsonasik
Copy link
Member

The Doctrine\ORM\Mapping\InverseJoinColumns need to be registered to ?

https://github.com/rectorphp/rector-src/blob/444cbd20d755c6c1a942ef4bfdc0860c633adcc9/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/config/configured_rule.php

Could you try to provide a fix as well? Thank you.

@fezfez
Copy link
Contributor Author

fezfez commented Nov 5, 2021

hello @samsonasik, i've done a fix, it's pretty ugly but it work.

@fezfez
Copy link
Contributor Author

fezfez commented Nov 8, 2021

@samsonasik : CI is green + i've rebase

@samsonasik
Copy link
Member

One more thing #1142 (comment) . also, new service is no need to be registered, should be auto registered.

@fezfez
Copy link
Contributor Author

fezfez commented Nov 8, 2021

@samsonasik : done

@TomasVotruba TomasVotruba merged commit cb74bb6 into rectorphp:main Nov 8, 2021
@TomasVotruba
Copy link
Member

TomasVotruba commented Nov 8, 2021

Thank you 😊

@usu
Copy link

usu commented Nov 11, 2021

I think there's a typo in the attribute name: Should be Doctrine\ORM\Mapping\InverseJoinColumn (without trailing s). Not sure though if this only needs to be fixed here or at other places, too.

https://www.doctrine-project.org/projects/doctrine-orm/en/2.9/reference/attributes-reference.html#attrref_manytomany

@samsonasik
Copy link
Member

@fezfez could you verify and update rector-doctrine as well if Doctrine\ORM\Mapping\InverseJoinColumns should be Doctrine\ORM\Mapping\InverseJoinColumn ?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants