An interesting question came up on IRC today, which essentially boils down to: “How to save extra fields in the join table for HABTM models,
Day: September 24, 2008
This is a simple hint, but hopefully will be useful to some… You might have noticed some examples where you have: $this->Profile->find(’all’, array(’fields’=>array(’SUM(Profile.votes) AS total_votes’)));