after the $dm->clear things are fine? is it "just" a caching issue? i wonder if we can even expect this to work or should require to call a refresh. the children version is on the database level, doctrine does not see that so it would need to refresh about everything after restoring...