We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rector version: 80bfee9 Update: I run this under PHP 8.1.
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES, SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES
The InverseJoinColumn ist not converted correct. It is converted to JoinColumn.
Before:
/** * @ORM\ManyToMany(targetEntity="App\Entity\Liste") * @ORM\JoinTable(name="liste_kontingente", * joinColumns={@ORM\JoinColumn(name="kontingent_id", referencedColumnName="id")}, * inverseJoinColumns={@ORM\JoinColumn(name="liste_id", referencedColumnName="id")} * ) */ protected Collection $listen;
After:
#[ORM\ManyToMany(targetEntity: Liste::class)] #[ORM\JoinTable(name: 'liste_kontingente', joinColumns: [], inverseJoinColumns: [])] #[ORM\JoinColumn(name: 'kontingent_id', referencedColumnName: 'id')] #[ORM\JoinColumn(name: 'liste_id', referencedColumnName: 'id')] protected Collection $listen;
Correct:
#[ORM\ManyToMany(targetEntity: Liste::class)] #[ORM\JoinTable(name: 'liste_kontingente', joinColumns: [], inverseJoinColumns: [])] #[ORM\JoinColumn(name: 'kontingent_id', referencedColumnName: 'id')] #[ORM\InverseJoinColumn(name: 'liste_id', referencedColumnName: 'id')] protected Collection $listen;
The text was updated successfully, but these errors were encountered:
@acrobat this maybe similar issue with issue that you resolve on PR
Could you verify it and possible provide a patch for it? Thank you.
Sorry, something went wrong.
Thank you @Chris53897 for reporting this issue. I can see rector did the same error in my app that I'm migrating right now.
The solution is on the way 😀 👍 See rectorphp/rector-src#2781
Successfully merging a pull request may close this issue.
Rector version: 80bfee9
Update: I run this under PHP 8.1.
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES
The InverseJoinColumn ist not converted correct.
It is converted to JoinColumn.
Before:
After:
Correct:
The text was updated successfully, but these errors were encountered: