не накладывается условие в scopes

Добрый вечер, столкнулся с такой проблемой

есть класс рубрик

class Rubrics extends CActiveRecord

{

public function relations()

{


	// NOTE: you may need to adjust the relation name and the related


	// class name for the relations automatically generated below.


	return array(


		'items' => array(self::HAS_MANY, 'Items', 'itm_rub_id'),


        'wedProperties' => array(self::MANY_MANY, 'Properties', 'wed_rubric_properties(rub_id, prp_id)'),


	);


}

}

со связью с классом Properties

class Properties extends CActiveRecord

{

public function scopes()


{


    return array(


        'active'=>array(


            'prp_act'=>"prp_act=1",


        ),


    );


}

}

в Properies определен scopes

При выборке рубрики с активными Properties выбираются все свойства((

$rubric = $rubricModel->with(‘wedProperties:active’)->findByPk(1);

Кто может знать в чем проблема?

Сори, нашел завтык)

Пересидел видать)…