This bug should be marked as invalid as it was due to DB migrations not being set up correctly and hence no foreign keys on tables. Not to do with what my initial guess was.
This bug should be marked as invalid as it was due to DB migrations not being set up correctly and hence no foreign keys on tables. Not to do with what my initial guess was.