/**
  * @return \yii\db\ActiveQuery
  */
 public function getReporte()
 {
     return $this->hasOne(Reporte::className(), ['id' => 'reporte_id']);
 }
Beispiel #2
0
 public function getReporte()
 {
     return $this->hasMany(Reporte::className(), ['usuario_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReportes()
 {
     return $this->hasMany(Reporte::className(), ['aliado_id' => 'id']);
 }