Works like a charm,
thank you, nate.
I've solved that using findAllThreaded() , and changing 'gallery_id'
table column to 'parent_id' , and removing any associations of
gallery. The results are also the same, for this situation.
I have never seen any examples of this findAllThreaded(), not even in
docs. Is it ready for use ?
Thanks
Spark!
On 5/7/06, nate <[EMAIL PROTECTED]> wrote:
>
> The problem is that your hasMany association array is overwriting your
> main model array (since both are called "Gallery"). Here's what you
> can do instead:
>
> var $hasMany = array('Galleries' => array('className' => 'Gallery'));
>
> Now, your main Gallery will show up in the 'Gallery' array, and your
> child Galleries will show up in the 'Galleries' array.
>
>
> >
>
--
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---