Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • User of Recursive in cakephp

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 285
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: