Fixes: #2589 foreignKeys handled in deletion case