On Tue, Feb 22, 2011 at 3:24 PM, dtemes <[email protected]> wrote:
> The classregistry way is the one I have seen as response to similar
> questions.
>
> In your example you are talking about races, so probably your Race
> model has many cars and also has many spectators, in that case models
> A and B are linked throug model C, so you could code something like:
>
> $this->Car->Race->Spectator->find(....
>
> Please cakephp gurus out there, correct me if I'm wrong.

I don't fell like much of a guru but I'll chip in to agree with your
explanation.

Though I can't imagine a scenario where both RaceCar and Spectator
need be accessed unless the action in question is
horribleTrackAccident() or similar.

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

Reply via email to