hello , i need to get values from a many to many relation and it is not working.
have
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(
'projetos' => array(self::MANY_MANY, 'Projetos', 'utilizador_projeto(utilizador, cod_projeto)'),
);
}
and $user = Utilizadores::model()->With(‘projetos’)->findByAttributes( array( ‘utilizador’ => $this->username));
CVarDumper::dump($user->projectos->utilizador_projecto->utilizador); dont work
Property "Utilizadores.projectos" is not defined.