Thanks everyone. I'll go the SQL route. Just wanted to make sure I wasn't missing something obvious!
...Brenda On Mar 16, 4:28 am, WebbedIT <[email protected]> wrote: > I would also run a SQl query direct on the database using phpMyAdmin > or the CLI > > UPDATE model_a SET model_a.model_b_count = (SELECT COUNT(model_b.id) > FROM model_b WHERE model_b.model_a_id = model_a.id) > > HTH > > 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
