database - CakePHP, setting recursive to -1 for a model so it doesn't do "joins"? -


I have 2 models that are connected, but I want to add it when I update the database. The cookbook, I can not fully assemble how I want to set "recursive" for 1, I can also do this for a model for which the association, another or both

Like if model 1 comes under "Model 2" and I'm trying to make it So model updating the control model of data 1 1 This model does not include the 2. ..

The appropriate syntax is appreciated for this to be implemented

$ this-> Your Modell- & gt; Recursive = -1; before your query in your controller.

OR

$ this-> Your Modell- & gt; Search ('All', array ('recursive' = & gt; -1);


Comments