So I have three models:
Coach: var $hasAndBelongsToMany = array("Tour")
Tour: var $hasAndBelongsToMany = array("Coach")
CoachesTour: var $belongsTo = array("Tour", "Coach")
There is an HABTM association between Coach and Tour, and it should use the CoachesTour as the join model.
I'm using scaffold. When modifying a Tour, if I add a new CoachesTour to it, the beforeSave method of CoachesTour isn't called. It seems as if the records of the join model are being inserted as SQL statements, instead of using the join model.
Am I missing something here?
Thanks,