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 NonUniqueResultException when retrieving an organ based on its abbreviation #982

Merged
merged 2 commits into from
Feb 10, 2020

Conversation

tomudding
Copy link
Member

This fixes #978.

Previously Doctrine's ORM would throw an NonUniqueResultException when two (or more) organs shared the same abbreviation. This limits the selection of an organ based on its abbreviation to the latest record. In other words, now the organ with the most recent foundationDate is retrieved.

This limits the selection of an organ based on its abbreviation to the latest record.

Previously Doctrine's ORM would throw an `NonUniqueResultException` when two organs shared the same abbreviation. This was not taking into consideration.

The query will now only select the organ with the most recent `foundationDate`.
This makes the limiter opt-inable as suggested.
@Koen1999 Koen1999 merged commit 52d5de8 into GEWIS:master Feb 10, 2020
tomudding added a commit to tomudding/gewisweb that referenced this pull request May 15, 2023
Note that this only fixes this when displaying a list of organs on
the profile of a member. A similar problem was addressed in GEWISGH-982
but can never be completely fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Committee page not accesible due to duplicate DB entries
3 participants