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

BUGFIX: AnnotationDriver correctly applies ORM relation annotations #1080

Merged
merged 1 commit into from
Sep 20, 2017

Conversation

albe
Copy link
Member

@albe albe commented Sep 20, 2017

Before any falsy value in one of the ORM relation annotations, like e.g. orphanRemoval=false or cascade={}, would not be applied to mapping and hence the defaults still be in effect. This change fixes that by explicitly checking the annotation properties against null, so that any value specified by the user will actually be applied.

Fixes #1079

@mention-bot
Copy link

@albe, thanks for your PR! By analyzing the history of the files in this pull request, we identified @skurfuerst, @kdambekalns and @bwaidelich to be potential reviewers.

Before any `falsy` value in one of the ORM relation annotations, like e.g.
`orphanRemoval=false` or `cascade={}`, would not be applied to mapping
and hence the defaults still be in effect.
This change fixes that by explicitly checking the annotation properties
against null, so that any value specified by the user will actually be applied.
Copy link
Member

@kitsunet kitsunet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes totally sense! Thanks for digging.

Copy link
Member

@kdambekalns kdambekalns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WTF… Thanks!

@kdambekalns kdambekalns merged commit f571905 into neos:3.3 Sep 20, 2017
@kdambekalns kdambekalns deleted the annotationdriver-fix branch September 20, 2017 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants