Hallo liebe Community,

ich habe eine Frage bzgl. hasMany...

Ich habe ein Model "User" (users), welches via hasOne u.a. auf
"Account" (users_accounts) und "File" (users_files) zugreift.
Ausserdem kann es via hasMany auf "Friends" (friends) zugreifen.

users_files beinhaltet die Uploads eines Users (Profilepic etc...).
Jetzt würde ich gerne mit $this->User->findById() nicht nur User,
Account, File und Friends bekommen, sondern für die Friends wiederum
ausserdem File aus users_files und Account aus users_account...
Verknüpfungen laufen natürlich jeweils über user(s)_id bzw.
friend_id....

Strukturell also so:

User
User[Account]
User[File]
User[Friends]
User[Friends][Account]
User[Friends][File]

Danke für eure Hilfe!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to