null], [['idEvento', 'idGrupo'], 'integer'], [['idEvento', 'idGrupo'], 'unique', 'targetAttribute' => ['idEvento', 'idGrupo']], [['idEvento'], 'exist', 'skipOnError' => true, 'targetClass' => Evento::className(), 'targetAttribute' => ['idEvento' => 'id']], [['idGrupo'], 'exist', 'skipOnError' => true, 'targetClass' => Grupo::className(), 'targetAttribute' => ['idGrupo' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'idEvento' => 'Id Evento', 'idGrupo' => 'Id Grupo', ]; } /** * Gets query for [[evento]]. * * @return \yii\db\ActiveQuery */ public function getEvento() { return $this->hasOne(Evento::className(), ['id' => 'idEvento']); } /** * Gets query for [[grupo]]. * * @return \yii\db\ActiveQuery */ public function getGrupo() { return $this->hasOne(Grupo::className(), ['id' => 'idGrupo']); } }