some improved error handling whilst tracking down a boog caused when back-porting working manual tests into the testsuite. Turns out that if I discard and re-fetch Doctrine, causing it to rebuild the relationships from the database, there are new errors in the code! Specifically, an incorrect mappedBy