Yeah recursive was the problem! Thanks for solution, now i have resolved... Bye!
On 20 Ott, 17:46, Céryl <[email protected]> wrote: > Try using recursive = 1, I think recursive = 0 specifically only finds > properties itself. recursive = 1 lets the model go one iteration > deeper and also get the associated images > > On 20 okt, 17:18, ilcaduceo <[email protected]> wrote: > > > Hi, I have two models > > > Properties HasMany Images > > Images BelongsTo Properties > > > In the index controller method I have this code: > > > $this->Property->recursive = 0; > > $this->set('properties', $this->paginate(null, $filters)); > > > But in the array $properties, result of paginate in the view, there > > aren't associated model Image... > > > How can I have the same effect of: this->Property->find('all'); ? > > > Thanks and sorry for my english ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
