コード例 #1
0
ファイル: Inscritos.php プロジェクト: schw/SGE3
 public function getEvento()
 {
     return $this->hasOne(Evento::className(), ['idEvento' => 'evento_idevento']);
 }
コード例 #2
0
ファイル: Tipo.php プロジェクト: schw/SGE3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventos()
 {
     return $this->hasMany(Evento::className(), ['tipo_idtipo' => 'idtipo']);
 }
コード例 #3
0
ファイル: User.php プロジェクト: schw/SGE3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventoIdeventos()
 {
     return $this->hasMany(Evento::className(), ['idevento' => 'evento_idevento'])->viaTable('inscreve', ['usuario_idusuario' => 'idusuario']);
 }
コード例 #4
0
ファイル: Palestrante.php プロジェクト: schw/SGE3
 public function getEvento()
 {
     return $this->hasMany(Evento::className(), ['palestrante_idPalestrante' => 'idPalestrante']);
 }
コード例 #5
0
ファイル: Voluntario.php プロジェクト: schw/SGE3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventoIdeventos()
 {
     return $this->hasMany(Evento::className(), ['idevento' => 'evento_idevento'])->viaTable('evento_has_voluntario', ['voluntario_idvoluntario' => 'idvoluntario']);
 }
コード例 #6
0
ファイル: Local.php プロジェクト: schw/SGE3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventos()
 {
     return $this->hasMany(Evento::className(), ['local_idlocal' => 'idlocal']);
 }