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

Fix comparison of order items #17070

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Fix comparison of order items #17070

merged 1 commit into from
Oct 4, 2024

Conversation

jaroslavtyc
Copy link
Contributor

@jaroslavtyc jaroslavtyc commented Oct 1, 2024

Fix comparison of order items when one of them is Doctrine proxy object

Q A
Branch? 1.13
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

Having two OrderItem objects, with exact same content, but one of them Doctrine proxy, then comparison of $orderItem instanceof static in proxy object fails, because compared object is not a Doctrine proxy. That is probably not intentional and can break app in imports and other "I have created an order item copy and I am looking for original" situations.

Fix comparison of order items when one of them is Doctrine proxy object
@jaroslavtyc jaroslavtyc requested review from a team as code owners October 1, 2024 09:43
Copy link

github-actions bot commented Oct 1, 2024

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

@GSadee GSadee added the Bug Confirmed bugs or bugfixes. label Oct 4, 2024
@GSadee GSadee merged commit 93126b4 into Sylius:1.13 Oct 4, 2024
29 checks passed
@GSadee
Copy link
Member

GSadee commented Oct 4, 2024

Thank you, Jaroslav! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants