Thx for the answers!

Yes, what I would like is two counters for one relation without
circumstances. Sorry if I didn't point this out very good.

I imagine something like this for a Model:
var $belongsTo = array('User' =>
                       array('className'  => 'User',
                             'counterCache' => array('private',
                                                     array('public' =>
array('scope' => array('Model.private' => 0))))));

Which results in model_private_count (all records) and
model_public_count (without private records) in the model table. The
naming and structure is just quick&dirty to give an idea, not sure
what would be the best.

I think this is not such an uncommon requirement and would be a good
enhancement. Unfortunately I lost the rights to create tickets on TRAC
(who can help me with this? I already tried IRC), so I hope someone
else that likes the idea could do this.

Regards,

Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to