most cakephp developers put this in their app model to ensure that the amount of unnecessary data returned by find queries stay as low as possible: http://book.cakephp.org/view/1063/recursive
if you put -1 in there or a specific model, by default it only gets the model data itself (no join data). 0 => belongsTo 1 => childs 2 => ALL (not recommended) I recommend: use containable behavior in combination with recursive -1. On 17 Nov., 06:32, Sandip Ghosh <[email protected]> wrote: > What is the use of $recursive= -1 in a model? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
