Hi, My experience with behaviours goes as far as using the core ones or those kindly made available by the community. One of those that I use is counter_cache_habtm
http://bakery.cakephp.org/articles/view/counter-cache-behavior-for-habtm-relations Within the behaviour's afterSave method it checks to see if the model's database includes a count field and if so fetches the updated count and saves it with the following command: $model->saveField($field, $count, array('validate' => false, 'callbacks' => false)); My problem is that after the above command runs it clears $model- >data, which I need for my afterSave method in the controller. How do I update the count field without blanking my data array? Thanks, Paul Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
