Fix deprecated method use.
Fix deprecated method use.

ndm2/cakephp,ADmad/cakephp,tenkoma/cakephp,dakota/cakephp,tenkoma/cakephp,CakeDC/cakephp,CakeDC/cakephp,garethellis36/cakephp,CakeDC/cakephp,ndm2/cakephp,mvdriel/cakephp,cakephp/cakephp,ADmad/cakephp,cakephp/cakephp,ndm2/cakephp,mvdriel/cakephp,dakota/cakephp,garethellis36/cakephp,petteyg/cakephp,garethellis36/cakephp,ADmad/cakephp,garethellis36/cakephp,petteyg/cakephp,ADmad/cakephp,mvdriel/cakephp,dakota/cakephp,davidyell/cakephp,davidyell/cakephp,dakota/cakephp,mvdriel/cakephp,petteyg/cakephp,ndm2/cakephp,davidyell/cakephp,cakephp/cakephp,tenkoma/cakephp,CakeDC/cakephp,tenkoma/cakephp,petteyg/cakephp,cakephp/cakephp