Bom dia a todos!
Estou querendo saber o seguinte tenho 3 tabelas tabelas relacionadas entre si no meu banco, o relacionamento na model esta desta forma
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(
'idempreemdimentos0' => array(self::BELONGS_TO, 'Empreendimentos', 'idempreemdimentos'),
'idgrupos0' => array(self::BELONGS_TO, 'Grupos', 'idgrupos'),
);
}
Eu gostaria de saber como eu faço para selecionar todos os empreemdimentos que tem o idgrupos.