in moshkel ba estefade az ‘through’ hal shod be in sorat ke baraye residan az Post be profile dar model Post :
public function relations(){
return array(
"content"=>array(self::BELONGS_TO,"Content","content_id"),
"user"=>array(self::BELONGS_TO,"User",array('user_id'=>'id'),"through"=>'content'),
"profile"=>array(self::HAS_ONE,"Profile",array('id'=>'user_id'),"through"=>'user'),
);
}