예제 #1
0
파일: User.php 프로젝트: no7kpo/denm
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdrutas()
 {
     return $this->hasMany(Ruta::className(), ['id' => 'idruta'])->viaTable('ruta_relevador', ['idrelevador' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdruta0()
 {
     return $this->hasOne(Ruta::className(), ['id' => 'idruta']);
 }