Re: Using $this->ModelA->ModelB->find('list') with belongsTo conditions on ModelA.

2008-11-04 Thread Ian M. Jones
Hi David, That's a shame, as in this case ModelB is an alias, and so the condition specified in the relationship to ModelA only applies to that relationship. In fact, in my particular case a Crop can have an Entry Classification and an Attained Classification, which are sub-sets of the Classific

Re: Using $this->ModelA->ModelB->find('list') with belongsTo conditions on ModelA.

2008-11-04 Thread David C. Zentgraf
Doing ModelA->ModelB->find() is the same thing as ModelB->find(). It doesn't matter "through" which or how many models you go, it doesn't change the result. Which means, the conditions and associations you have defined in ModelB are being used here, so check those. On 4 Nov 2008, at 20:07, Ia

Using $this->ModelA->ModelB->find('list') with belongsTo conditions on ModelA.

2008-11-04 Thread Ian M. Jones
Hi all, I'm a little confused about something I'm seeing with belongsTo conditions, and from searching the docs and this list I haven't been able to find an answer. Maybe some kind soul can help clear my confusion? In my Crop model I have: var $belongsTo = array( 'EntryC