Scaffolding can display this for you, it's a great tool!

You can view the output here: http://www.myclubbersguide.com/users
It contains the queries being used as well as the print_r() of the object(s).
The code for the models was in the first email/post in this thread. As far as i understand it, scaffolding is recursive.

Thank you for your help,
Brian French

Chris Hartjes wrote:
On 9/8/06, Brian French <[EMAIL PROTECTED]> wrote:
  
I am having trouble associating the multiple models i have with each other.

I have a 'User' that hasOne 'Fan','Artist','Venue','Promoter'.
The 'User' also hasAndBelongsToMany of the same ones (like he can
subscribe to them as well as be one/all of them).

I am using the scaffolding to view the associations with them. The
associations are being added ok but when i view the user, the
associations aren't being picked up. Here are the 'User' model and the
'Artist' model (the fan, artist, venue and promoter models all look the
same).

What am i doing wrong?

    

I've never used the scaffolding before, but can you show the code that
you think is pulling out the User information?  Also, the database
output (showing all the queries) would be helpfull.  I wonder if the
scaffolding is setting the recursive stuff to -1 and simply showing
User records only...

  

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to