コード例 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReporte()
 {
     return $this->hasOne(Reporte::className(), ['id' => 'reporte_id']);
 }
コード例 #2
0
ファイル: User.php プロジェクト: josterricardo/ProyectoMilan
 public function getReporte()
 {
     return $this->hasMany(Reporte::className(), ['usuario_id' => 'id']);
 }
コード例 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReportes()
 {
     return $this->hasMany(Reporte::className(), ['aliado_id' => 'id']);
 }