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

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