'artWeight'=>array(self::HAS_MANY, 'galXart', 'galID'), 'art'=>array(self::MANY_MANY, 'art', 'galXart(galID, artID)', 'with'=>'artWeight', 'order'=>'artWeight.weight ASC'),
This works fine for sorting the art in each gallery. However I'm having a hard time getting the actual value of the join table's weight field printed in my page.
I gather the art from the galleries relationship this way:
$art = $model->art; $this->renderPartial('_thumbs',array( 'gallery' => $model, 'art' => $art, ));
This may seem foolish to you pros, but I can't figure out how to access the weight field buried in the $art object.