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(
'TachesActif' => array(self::MANY_MANY, 'TTarifsvente',
't_tarifsvente(fk_tache,fk_projet,fk_personne)',
'order'=>'titre'),
);
}
but in fact I would like this relation :
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(
'TachesActif' => array(self::MANY_MANY, 'TTarifsvente',
't_tarifsvente(fk_tache,fk_personne)',
'order'=>'titre'),
);
}
Let me give you more details ofr your particular needs, you may need something like this in the model Tache:
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(
'TachesActif' => array(self::MANY_MANY, 'TPersonne',
't_tarifsvente(fk_tache,fk_personne)',
'order'=>'titre'),
);
}