Changing your vote, e.g. going from up to down or vice versa, does not update a submission's ranking
The issue is caused by attempting to update the ranking in a Doctrine listener using $submissionVote()->getSubmission()->setRanking(...)
. Altering associated entities is not actually possible in the preUpdate
event, and so it fails silently.
Quoting from the documentation:
Changes to associations of the passed entities are not recognized by the flush operation anymore.
This issue is hard to fix in a clean manner, since voting for both submissions and comments take place through the same controller, but only voting submissions must lead to additional updated fields.