i think you could make it into the model (although it's done in every
model), using 'conditions' in the association array...
var $belongsTo = array('User' =>
array('className' => 'User',
'conditions' => '',
'order' => '',
'foreignKey' => 'user_id'
)
);
would be made this way ?
spark
On 12/1/06, floepi <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> is is possible to inject a condition into all my find methods. All of
> my tables have an active field and i would like to create a global
> condidtion for my sql queries that always filter out the records where
> active is = 0
>
> Could not find any information about it anywhere.
>
> Thanks for your help.
>
> Cheers
>
> Phil
>
>
> >
>
--
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br/mp3
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---