Simple solution is to add 'deleted => 0' to your association.
var $hasMany = array(
'Album' => array(
'className' => 'Album',
'conditions' => 'Album.deleted = 0',
),
);
In one app I have a much more complex solution of a model behaviour
that dynamically modifies all queries, but to tell you the truth it is
overkill :P
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---