Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPreguntas()
 {
     return $this->hasMany(Pregunta::className(), ['id_tipo' => 'id']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPreguntas()
 {
     return $this->hasMany(Pregunta::className(), ['id_examen' => 'id'])->orderBy('nro_pregunta');
 }
Exemple #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPreguntas()
 {
     return $this->hasMany(Pregunta::className(), ['codFormulario' => 'codigo']);
 }
Exemple #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdPregunta0()
 {
     return $this->hasOne(Pregunta::className(), ['id' => 'idPregunta', 'codFormulario' => 'codFormulario']);
 }
Exemple #5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdPregunta()
 {
     return $this->hasOne(Pregunta::className(), ['id' => 'id_pregunta']);
 }