Updated Doctrine In The Framework Tests

Replaces #3375. I still get `100%` passing tests as shown by the diff.