It is used where ample data is fetched from the query and there are numerous levels of associations between your models.
we use Recursive like this way.
$this->Region->find('all', array('recursive' => 0));
These are levels of Recursive function.
-1 No associated data is retrieved with the find query.
0 Retrieves any BelongsTo associated data.
1 Retrieves any directly related associations (i.e., BelongsTo, HasMany, HasOne, HasAndBelongsToMany).
2 Retrieves any directly related associations, and their associations associations.
0 Comment(s)