示例#1
0
 public function getConductor()
 {
     return $this->hasMany(Conductor::className(), ['usuario_id' => 'id']);
 }
 public function getConductor()
 {
     return $this->hasOne(Conductor::className(), ['id' => 'reporte_id']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getConductors()
 {
     return $this->hasMany(Conductor::className(), ['aliado_id' => 'id']);
 }