Jira issue originally created by user @beberlei:
domnikl created a pull request on Github:
added cascade detach operation only for entites with the same name when $entityName on clear() was specified. I am still unsure where to put my tests for that.
Comment created by @guilhermeblanco:
Fixed in this commit 22a04fd
Issue was closed with resolution "Fixed"