예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'userid']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMy()
 {
     return $this->hasOne(User::className(), ['id' => 'myid']);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTo0()
 {
     return $this->hasOne(User::className(), ['id' => 'to']);
 }