mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Removing an entity causes InvalidArgumentException #5025
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @olegkrivtsov on GitHub (Feb 26, 2016).
Hi, I'm having a 'EmailFolder' entity and trying to delete all mail folders like this:
This raises an
InvalidArgumentExceptionexception:But, when I delete the entities as follows, no exception is raised:
What's the difference? Why in the first case there is an exception, but in the second one there is no exception?
Here is the code of the entity: