Model_A has_many Model_B, Model_B has_many Model_Ayou will have
Model_A has_many Model_AB, Model_AB belongs_to Model_A, Model_B has_many Model_AB, Model_AB belongs_to Model_B
protected static $_many_many = array( 'coordinators' => array( 'table_through' => 'neighborhood_volunteers', 'key_from' => 'id', 'key_through_from' => 'neighborhood_id', 'key_to' => 'id', 'key_through_to' => 'user_id', 'model_to' => 'Model_User', 'conditions => array( 'where' => array( array( 'neighborhood_volunteers.is_coordinator', '=', 1) ) ) ) );
It looks like you're new here. If you want to get involved, click one of these buttons!