Optimize query expression traveral.
Optimize query expression traveral.

The self referencing closure was causing performance degradation.

ndm2/cakephp,ndm2/cakephp,ADmad/cakephp,CakeDC/cakephp,ndm2/cakephp,ndm2/cakephp,CakeDC/cakephp,CakeDC/cakephp,ADmad/cakephp,cakephp/cakephp,cakephp/cakephp,ADmad/cakephp,CakeDC/cakephp,ADmad/cakephp,cakephp/cakephp,cakephp/cakephp