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
I ran AnnotationToAttribute set and got a weird thing happening
I had this before
/** * @Mapping\ManyToOne(targetEntity=Application::class, inversedBy="options", fetch="EXTRA_LAZY", cascade={"persist"}) * @Mapping\JoinColumn(name="application_id", referencedColumnName="id", nullable=false)
And after rector I got this
#[ORM\ManyToOne(targetEntity: Application::class, inversedBy: 'options', fetch: 'EXTRA_LAZY', cascade: ['persist', new ORM\JoinColumn(name: 'application_id', referencedColumnName: 'id', nullable: false)])] #[ORM\JoinColumn(name: 'application_id', referencedColumnName: 'id', nullable: false)]
The JoinColumn was added to the cascade array and is causing the following exception
JoinColumn
strtolower(): Argument #1 ($string) must be of type string, Doctrine\ORM\Mapping\JoinColumn given
The text was updated successfully, but these errors were encountered:
Nevermind that it came from another custom Rule I made. Closing this
Sorry, something went wrong.
No branches or pull requests
I ran AnnotationToAttribute set and got a weird thing happening
I had this before
And after rector I got this
The
JoinColumn
was added to the cascade array and is causing the following exceptionThe text was updated successfully, but these errors were encountered: