Apply patch from 'Carlos Gant'
Apply patch from 'Carlos Gant'

Remove un-necessary loop when deleting without cascade.
Fixes #2050

jeffblack360/cakephp,khoimt/cakephp-study,CVO-Technologies/cakephp,thinkingmedia/cakephp,bravo-kernel/cakephp,ADmad/cakephp,et304383/passbolt_api,jerems02/cakephp,CakeDC/cakephp,berrygoudswaard/cakephp,adopico/cakephp,akintoey/cakephp,dakota/cakephp,erikfig/cakephp,elboletaire/cakephp,mvdriel/cakephp,davidyell/cakephp,yinhe007/cakephp,tisu2tisu/cakephp,Phillaf/cakephp,Phillaf/cakephp,eboominathan/cakephp,garethellis36/cakephp,dkarvounaris/cakephp,web-player/cakephp,kumamidori/cakephp,jeffblack360/cakephp,cakephp/cakephp,dkarvounaris/cakephp,pbaire/cakephp,cakephp-fr/cakephp,burriko/cakephp,cakephp/cakephp,tgr0ss/cakephp,eryw/cakephp,kumamidori/cakephp,akintoey/cakephp,timhoeppner/cakephp,ionas/cakephp,cakephp/cakephp,thinkingmedia/cakephp,ADmad/cakephp,mvdriel/cakephp,dakota/cakephp,ndm2/cakephp,petteyg/cakephp,bravo-kernel/cakephp,cakephp-fr/cakephp,jjj117/cakephp,web-player/cakephp,michaelze/cakephp,tenkoma/cakephp,jjj117/cakephp,bravo-kernel/cakephp,ndm2/cakephp,Phillaf/cakephp,garethellis36/cakephp,HavokInspiration/cakephp,pbaire/cakephp,eryw/cakephp,ADmad/cakephp,et304383/passbolt_api,petteyg/cakephp,michaelze/cakephp,kumamidori/cakephp,elboletaire/cakephp,jerems02/cakephp,ndm2/cakephp,et304383/passbolt_api,garethellis36/cakephp,CVO-Technologies/cakephp,HavokInspiration/cakephp,burriko/cakephp,petteyg/cakephp,michaelze/cakephp,berrygoudswaard/cakephp,justinyost/cakephp,nrother/cakephp,ADmad/cakephp,thinkingmedia/cakephp,jeffblack360/cakephp,davidyell/cakephp,eboominathan/cakephp,Balachan27/cakephp,jerems02/cakephp,jjj117/cakephp,timhoeppner/cakephp,berrygoudswaard/cakephp,tenkoma/cakephp,eboominathan/cakephp,tenkoma/cakephp,cakephp/cakephp,justinyost/cakephp,tisu2tisu/cakephp,yinhe007/cakephp,CakeDC/cakephp,erikfig/cakephp,khoimt/cakephp-study,et304383/passbolt_api,CakeDC/cakephp,erikfig/cakephp,et304383/passbolt_api,tgr0ss/cakephp,tgr0ss/cakephp,gmponos/cakephp,burriko/cakephp,justinyost/cakephp,web-player/cakephp,khoimt/cakephp-study,yinhe007/cakephp,nrother/cakephp,timhoeppner/cakephp,garethellis36/cakephp,nrother/cakephp,ndm2/cakephp,tenkoma/cakephp,elboletaire/cakephp,tisu2tisu/cakephp,dakota/cakephp,dakota/cakephp,Balachan27/cakephp,mvdriel/cakephp,pbaire/cakephp,akintoey/cakephp,dkarvounaris/cakephp,adopico/cakephp,gmponos/cakephp,gmponos/cakephp,ionas/cakephp,eryw/cakephp,CakeDC/cakephp,ionas/cakephp,petteyg/cakephp,Balachan27/cakephp,adopico/cakephp,mvdriel/cakephp,HavokInspiration/cakephp,davidyell/cakephp,CVO-Technologies/cakephp,cakephp-fr/cakephp