Hi Paul, My app use standard conventions... I just have hasOne relation between user and anagrafica...if I find users it works right!
Now I try to do a find on the middle model but where I need to do? In the index method of user model? Thank you for you help! On Feb 9, 10:54 am, phpMagpie <[email protected]> wrote: > Did you try using containable ... you really should as it saves you so much > time and has many options to only pull the models and fields you require. > > CakePHP will not 'automagically' perform a join two levels deep. If you > need that (and you should only need this if doing a find which requires > conditions on all three tables at once - otherwise just use containable) > then you can do a find on the middle model (User) and it will join it's > hasOne and belongsTo associated models (you need to add User hasOne Jobber). > > Can I ask why you are breaking from conventions with your table names? > This sort of thing is counter-intuitive as your instantly working with a > non-standard app and when asking for support people will expect you to be > using the standards. > > HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
