Fix introspection on models in other plugins.
Fix introspection on models in other plugins.

Apply patch from 'Kim Biesbjerg'.  Fixes issues introspecting
models in associations from different plugins.

Fixes #2732

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