Re: FindAll and Recursive

2008-01-08 Thread [EMAIL PROTECTED]
I show my real application. Model A: Class Informazione . var $belongsTo = array('InformazioneTipo' => ); var $hasAndBelongsToMany = array('InformazioneCampo' => ); In model A I change the fields re

Re: FindAll and Recursive

2008-01-07 Thread AD7six
On Jan 7, 8:11 pm, AD7six <[EMAIL PROTECTED]> wrote: > You overwrote the find method, just to change the fields returned on > an associated model? Whoops I clicked send too soon. I find that a bit A given that B and and should be used to do C. Where: A = strange B = bindModel/your association

Re: FindAll and Recursive

2008-01-07 Thread AD7six
On Jan 7, 7:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Sorry I have mistaked. > A has belongsTo Association with B > A has hasAndBelongsToMany Association with C > B has hasMany Association with A > > I change the methods findAll and find for A where I change the field > of the mod

Re: FindAll and Recursive

2008-01-07 Thread [EMAIL PROTECTED]
Sorry I have mistaked. A has belongsTo Association with B A has hasAndBelongsToMany Association with C B has hasMany Association with A I change the methods findAll and find for A where I change the field of the model C that I get normally with findAll and find. I make a findAll operation on mo

Re: FindAll and Recursive

2008-01-07 Thread francky06l
Sorry, a bit unclear to me : A hasMany B ? B has got which relation with A ? On Jan 7, 7:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > I have this question. > I have a model A where I change the methods findAll and find. > Now I have another model B that is in "hasMany" associat

FindAll and Recursive

2008-01-07 Thread [EMAIL PROTECTED]
Hi I have this question. I have a model A where I change the methods findAll and find. Now I have another model B that is in "hasMany" association with this model. Now if in the controller I make a find operation on model A I get the right result. If I make a find operation on model B with recur

Re: findAll and $recursive option

2007-08-27 Thread bunyan
Thanks, but it's the same as $this->Vacancy->recursive. Manual: "$recursive This sets the number of levels you wish Cake to fetch associated model data in find() and findAll() operations." On 27 авг, 23:33, Freight <[EMAIL PROTECTED]> wrote: > Have looked at this? Perhaps sixth parameter! > >

Re: findAll and $recursive option

2007-08-27 Thread Freight
Have looked at this? Perhaps sixth parameter! http://api.cakephp.org/class_model.html#63ade7d3c6d03c83ab53a224e23ad9dd Model::findAll ( $conditions = null, $ fields = null, $ order = null, $ limit = null,

findAll and $recursive option

2007-08-27 Thread bunyan
Hello! I have three models - City, State and Vacancy. City belongs to state and vacancy belongs to city. Setting $this->Vacancy->recursive = 2 and then calling $this->Vacancy- >findAll() with no parameters returns the Vacancy, City and State data. But if I call $this->Vacancy->findAll() with arr