this is to emulate the sonata behaviour of calling persist even for already managed documents. i would have expected this to be unnecessary, but in this case it leads to an exception, while deactivating persist for managed documents in general leads to the cascading test to fail, as noted above