InformazioneCampo ..
var $hasAndBelongsToMany = array('InformazioneTipo' =
);
View for findAll without recursive:
Array
(
[0] = Array
(
[Informazione] = Array
(
[informazione_id
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
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
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 model C that
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
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 array of
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,
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!