i have a 3 tables, world, monster, and possible_monster
possible_monster defines which world has which monsters it contains world_id, monster_id and quantity fields.
i have a many to many relation defined in World model
"possible_monsters" => array(self::MANY_MANY, "Monster", "possible_monster(world_id, monster_id)")
i can read fields from the monsters table with
World::model()->with("possible_monsters")->findByPk(x)->possible_monsters->namewithout a problem.
But i can't find a way to read a field quantity from the possible_monster table?
Is that even possible and how?