-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add a test case to show #9376 and #9377 have been resolved #10733
Conversation
This is part of the series of issues fixed by doctrine#10547. In particular, the changes from doctrine#10566 were relevant. See doctrine#9376 for the bug description; doctrine#9377 is obsoleted by doctrine#10547.
* @ORM\ManyToOne(targetEntity=GH9376Gift::class) | ||
* @ORM\JoinColumn(nullable=false) | ||
* | ||
* @var GH9376Gift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variant points to the gift and nothing else
/** | ||
* @Entity | ||
*/ | ||
class GH9376Product |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The product points to nothing
/** | ||
* @Entity | ||
*/ | ||
class GH9376Gift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gif points to a product and nothing else.
So the graph is like Variant -> Gift -> Product
🤔 where is the circular reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a careful reader you are. Test originally comes from here: https://github.com/doctrine/orm/pull/9377/files#diff-aa92ab1b41151bbdb1e6af1f38699ad708680e99bdf4420b56b9eddd64376061
This is part of the series of issues fixed by #10547. In particular, the changes from #10566 were relevant.
See #9376 for the bug description.
The suggested fix in #9377 is obsoleted by #10547.