Re: Conditional belongsTo based on field values

2007-03-28 Thread francky06l
Hummm, afterFind does not seem a good idea .. maybe before the findAll since your condition will apply there. afterFind will be too late .. On Mar 28, 11:54 am, "mac joost" <[EMAIL PROTECTED]> wrote: > Hi, > > > var belongsTo can support conditions have you tried using them? > > Conditions would

Re: Conditional belongsTo based on field values

2007-03-28 Thread mac joost
Hi, > var belongsTo can support conditions have you tried using them? Conditions would not work in my case since the model to bind to would be conditional, not the query itselve. > if you want them to be dynamic try combination bind and unbind models I will look into this. I'm planning to do t

Re: Conditional belongsTo based on field values

2007-03-28 Thread francky06l
You can use the 'conditions' into the relation definition. You can also use bindModel to change this condition. On Mar 28, 11:17 am, "mac joost" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm building a site for an art magazine. Among other things, they have > articles and advertisements. > > On the ho

Re: Conditional belongsTo based on field values

2007-03-28 Thread Dr. Tarique Sani
var belongsTo can support conditions have you tried using them? if you want them to be dynamic try combination bind and unbind models in the controller See the manual for more... HTH Tarique On 3/28/07, mac joost <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm building a site for an art magazine. A