예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFollows()
 {
     return $this->hasMany(Follow::className(), ['staffID' => 'formalemail']);
 }
예제 #2
0
파일: User.php 프로젝트: pyvil/yii-app
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFollows()
 {
     return $this->hasMany(Follow::className(), ['id_follow' => 'id']);
 }