[#DDC-2524] Wrong commit order with cascade remove and double association

This PR contains the failing test case for [DDC-2524](http://www.doctrine-project.org/jira/browse/DDC-2524).